/** * Update handler for the enable state of the root editor. * * @param editor the editor. */ protected void updateRootEditorEnabled(final RootEditor editor) { final boolean enabled = editor.isEnabled(); for (int i = 0; i < this.tabbedPane.getTabCount(); i++) { final Component tab = this.tabbedPane.getComponentAt(i); if (tab == editor.getMainPanel()) { this.tabbedPane.setEnabledAt(i, enabled); return; } } } }
/** * Update handler for the enable state of the root editor. * * @param editor the editor. */ protected void updateRootEditorEnabled(final RootEditor editor) { final boolean enabled = editor.isEnabled(); for (int i = 0; i < this.tabbedPane.getTabCount(); i++) { final Component tab = this.tabbedPane.getComponentAt(i); if (tab == editor.getMainPanel()) { this.tabbedPane.setEnabledAt(i, enabled); return; } } } }
/** * Update handler for the enable state of the root editor. * * @param editor the editor. */ protected void updateRootEditorEnabled(final RootEditor editor) { final boolean enabled = editor.isEnabled(); for (int i = 0; i < this.tabbedPane.getTabCount(); i++) { final Component tab = this.tabbedPane.getComponentAt(i); if (tab == editor.getMainPanel()) { this.tabbedPane.setEnabledAt(i, enabled); return; } } } }