@@ -200,7 +200,7 @@ protected void onUpdatePressed() {
200
200
try {
201
201
setProgressVisible (true , "" );
202
202
installer .updateIndex (this ::setProgress );
203
- onIndexesUpdated ();
203
+ // onIndexesUpdated();
204
204
} catch (Exception e ) {
205
205
throw new RuntimeException (e );
206
206
} finally {
@@ -218,8 +218,10 @@ public void onInstallPressed(final ContributedLibrary lib, final Optional<Contri
218
218
try {
219
219
setProgressVisible (true , tr ("Installing..." ));
220
220
installer .install (lib , mayReplaced , this ::setProgress );
221
- onIndexesUpdated ();
222
221
// TODO: Do a better job in refreshing only the needed element
222
+ if (contribTable .getCellEditor () != null ) {
223
+ contribTable .getCellEditor ().stopCellEditing ();
224
+ }
223
225
((LibrariesIndexTableModel ) contribModel ).update ();
224
226
} catch (Exception e ) {
225
227
throw new RuntimeException (e );
@@ -247,8 +249,10 @@ public void onRemovePressed(final ContributedLibrary lib) {
247
249
try {
248
250
setProgressVisible (true , tr ("Removing..." ));
249
251
installer .remove (lib , this ::setProgress );
250
- onIndexesUpdated ();
251
252
// TODO: Do a better job in refreshing only the needed element
253
+ if (contribTable .getCellEditor () != null ) {
254
+ contribTable .getCellEditor ().stopCellEditing ();
255
+ }
252
256
((LibrariesIndexTableModel ) contribModel ).update ();
253
257
} catch (Exception e ) {
254
258
throw new RuntimeException (e );
@@ -260,9 +264,4 @@ public void onRemovePressed(final ContributedLibrary lib) {
260
264
installerThread .setUncaughtExceptionHandler (new InstallerJDialogUncaughtExceptionHandler (this , noConnectionErrorMessage ));
261
265
installerThread .start ();
262
266
}
263
-
264
- protected void onIndexesUpdated () throws Exception {
265
- // Empty
266
- }
267
-
268
267
}
0 commit comments