Esempio n. 1
0
  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));
  }
Esempio n. 2
0
 public void duplicate() {
   add(clonedTabsFactory.createTab(getCurrentTab()));
 }
Esempio n. 3
0
 /** ****************** MuActions support ****************** */
 public void add(AbstractFile file) {
   addTab(defaultTabsFactory.createTab(file.getURL()));
 }