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