@@ -200,7 +200,7 @@ protected void onUpdatePressed() {
200200 try {
201201 setProgressVisible (true , "" );
202202 installer .updateIndex (this ::setProgress );
203- onIndexesUpdated ();
203+ // onIndexesUpdated();
204204 } catch (Exception e ) {
205205 throw new RuntimeException (e );
206206 } finally {
@@ -218,8 +218,10 @@ public void onInstallPressed(final ContributedLibrary lib, final Optional<Contri
218218 try {
219219 setProgressVisible (true , tr ("Installing..." ));
220220 installer .install (lib , mayReplaced , this ::setProgress );
221- onIndexesUpdated ();
222221 // TODO: Do a better job in refreshing only the needed element
222+ if (contribTable .getCellEditor () != null ) {
223+ contribTable .getCellEditor ().stopCellEditing ();
224+ }
223225 ((LibrariesIndexTableModel ) contribModel ).update ();
224226 } catch (Exception e ) {
225227 throw new RuntimeException (e );
@@ -247,8 +249,10 @@ public void onRemovePressed(final ContributedLibrary lib) {
247249 try {
248250 setProgressVisible (true , tr ("Removing..." ));
249251 installer .remove (lib , this ::setProgress );
250- onIndexesUpdated ();
251252 // TODO: Do a better job in refreshing only the needed element
253+ if (contribTable .getCellEditor () != null ) {
254+ contribTable .getCellEditor ().stopCellEditing ();
255+ }
252256 ((LibrariesIndexTableModel ) contribModel ).update ();
253257 } catch (Exception e ) {
254258 throw new RuntimeException (e );
@@ -260,9 +264,4 @@ public void onRemovePressed(final ContributedLibrary lib) {
260264 installerThread .setUncaughtExceptionHandler (new InstallerJDialogUncaughtExceptionHandler (this , noConnectionErrorMessage ));
261265 installerThread .start ();
262266 }
263-
264- protected void onIndexesUpdated () throws Exception {
265- // Empty
266- }
267-
268267}
0 commit comments