void (CodeStyleAbstractPanel tab) { myTabs.add(tab); tab.setShouldUpdatePreview(true); addPanelToWatch(tab.getPanel()); myTabbedPane.addTab(tab.getTabTitle(), tab.getPanel()); if (myActiveTab == null) { myActiveTab = tab; } }