public virtual void addRootEditor(RootEditor rootPanel) { this.rootEditors.add((object) rootPanel); this.tabbedPane.add(rootPanel.getEditorName(), (Component) rootPanel.getMainPanel()); rootPanel.addPropertyChangeListener("enabled", (PropertyChangeListener) new AbstractTabbedUI.TabEnableChangeListener(this)); this.updateRootEditorEnabled(rootPanel); if (this.getRootEditorCount() == 1) { this.setSelectedEditor(0); } else { if (!this.isGlobalMenu()) return; this.setJMenuBar(this.updateGlobalMenubar()); } }