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