@@ -197,8 +197,11 @@ protected void onUpdatePressed() {
197
197
try {
198
198
setProgressVisible (true , "" );
199
199
installer .updateIndex (this ::setProgress );
200
- ((LibrariesIndexTableModel ) contribModel ).update ();
201
200
onIndexesUpdated ();
201
+ if (contribTable .getCellEditor () != null ) {
202
+ contribTable .getCellEditor ().stopCellEditing ();
203
+ }
204
+ ((LibrariesIndexTableModel ) contribModel ).update ();
202
205
} catch (Exception e ) {
203
206
throw new RuntimeException (e );
204
207
} finally {
@@ -234,12 +237,11 @@ public void onInstallPressed(final ContributedLibrary lib) {
234
237
} else {
235
238
installer .install (lib , this ::setProgress );
236
239
}
237
- // TODO: Do a better job in refreshing only the needed element
240
+ onIndexesUpdated ();
238
241
if (contribTable .getCellEditor () != null ) {
239
242
contribTable .getCellEditor ().stopCellEditing ();
240
243
}
241
244
((LibrariesIndexTableModel ) contribModel ).update ();
242
- onIndexesUpdated ();
243
245
} catch (Exception e ) {
244
246
throw new RuntimeException (e );
245
247
} finally {
@@ -266,12 +268,11 @@ public void onRemovePressed(final ContributedLibrary lib) {
266
268
try {
267
269
setProgressVisible (true , tr ("Removing..." ));
268
270
installer .remove (lib , this ::setProgress );
269
- // TODO: Do a better job in refreshing only the needed element
271
+ onIndexesUpdated ();
270
272
if (contribTable .getCellEditor () != null ) {
271
273
contribTable .getCellEditor ().stopCellEditing ();
272
274
}
273
275
((LibrariesIndexTableModel ) contribModel ).update ();
274
- onIndexesUpdated ();
275
276
} catch (Exception e ) {
276
277
throw new RuntimeException (e );
277
278
} finally {
0 commit comments