/** Notifies component that it was closed (and is not opened on any * workspace anymore). Top component manager that implements Component * inner interface of this class should send close notifications via * calling this method * @param tc the top component to be notified */ protected void componentCloseNotify (TopComponent tc) { try { tc.componentClosed(); } catch(RuntimeException re) { IllegalStateException ise = new IllegalStateException("[Winsys] TopComponent " + tc // NOI18N + " throws runtime exception from its componentClosed() method. Repair it!"); // NOI18N ErrorManager.getDefault().annotate(ise, re); ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, ise); } if (tc == activeComponent) { activateComponent (null); } }
/** Notifies component that it was closed (and is not opened on any * workspace anymore). Top component manager that implements Component * inner interface of this class should send close notifications via * calling this method * @param tc the top component to be notified */ protected void componentCloseNotify (TopComponent tc) { try { tc.componentClosed(); } catch(RuntimeException re) { IllegalStateException ise = new IllegalStateException("[Winsys] TopComponent " + tc // NOI18N + " throws runtime exception from its componentClosed() method. Repair it!"); // NOI18N ErrorManager.getDefault().annotate(ise, re); ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, ise); } if (tc == activeComponent) { activateComponent (null); } }