1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-18 12:54:25 +01:00

Base and BaseNoGui: removed uncaught exception handler

ContributionManagerUI: after install/upgrade/remove, cell updated and not in edit mode
This commit is contained in:
Federico Fissore 2015-02-27 10:02:29 +01:00
parent 33457adafe
commit f833ff84a7
3 changed files with 2 additions and 8 deletions

View File

@ -157,6 +157,7 @@ public class ContributionManagerUI extends InstallerJDialog {
if (platformToRemove != null) { if (platformToRemove != null) {
installer.remove(platformToRemove); installer.remove(platformToRemove);
} }
onIndexesUpdated();
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} finally { } finally {
@ -175,6 +176,7 @@ public class ContributionManagerUI extends InstallerJDialog {
try { try {
setProgressVisible(true, _("Removing...")); setProgressVisible(true, _("Removing..."));
installer.remove(platform); installer.remove(platform);
onIndexesUpdated();
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} finally { } finally {

View File

@ -229,12 +229,6 @@ public abstract class InstallerJDialog extends JDialog {
updateBox.setEnabled(!visible); updateBox.setEnabled(!visible);
cellEditor.setEnabled(!visible); cellEditor.setEnabled(!visible);
cellEditor.setStatus(status); cellEditor.setStatus(status);
if (visible && contribTable.isEditing()) {
TableCellEditor editor = contribTable.getCellEditor();
if (editor != null)
editor.stopCellEditing();
}
} }
private void updateCellsHeight(TableModelEvent e) { private void updateCellsHeight(TableModelEvent e) {

View File

@ -713,8 +713,6 @@ public class BaseNoGui {
if (args.length == 0) if (args.length == 0)
showError(_("No parameters"), _("No command line parameters found"), null); showError(_("No parameters"), _("No command line parameters found"), null);
Thread.setDefaultUncaughtExceptionHandler(new DefaultUncaughtExceptionHandler());
initPlatform(); initPlatform();
initPortableFolder(); initPortableFolder();