public FileTableTabs( MainFrame mainFrame, FolderPanel folderPanel, ConfFileTableTab[] initialTabs) { super( new FileTableTabsWithoutHeadersViewerFactory(folderPanel), new FileTableTabsWithHeadersViewerFactory(mainFrame, folderPanel)); this.folderPanel = folderPanel; defaultTabsFactory = new DefaultFileTableTabFactory(folderPanel); clonedTabsFactory = new ClonedFileTableTabFactory(folderPanel); // Register to location change events folderPanel.getLocationManager().addLocationListener(this); // Add the initial folders for (FileTableTab tab : initialTabs) addTab(clonedTabsFactory.createTab(tab)); }
public void duplicate() { add(clonedTabsFactory.createTab(getCurrentTab())); }
/** ****************** MuActions support ****************** */ public void add(AbstractFile file) { addTab(defaultTabsFactory.createTab(file.getURL())); }