Package com.mucommander.ui.main.tabs

Examples of com.mucommander.ui.main.tabs.ConfFileTableTab


    int nbFrames = snapshot.getIntegerVariable(MuSnapshot.getWindowsCount());

    // if there're no windows saved in the snapshot file, open one window with default settings
    if (nbFrames == 0) {
      MainFrame mainFrame = new MainFrame(
          new ConfFileTableTab(getInitialPath(FolderPanelType.LEFT)),
          getFileTableConfiguration(FolderPanelType.LEFT, -1),
          new ConfFileTableTab(getInitialPath(FolderPanelType.RIGHT)),
          getFileTableConfiguration(FolderPanelType.RIGHT, -1));
     
      Dimension screenSize   = Toolkit.getDefaultToolkit().getScreenSize();
          // Full screen bounds are not reliable enough, in particular under Linux+Gnome
          // so we simply make the initial window 4/5 of screen's size, and center it.
View Full Code Here


  private MainFrame createMainFrame(int index) {
    int nbTabsInLeftPanel = snapshot.getIntegerVariable(MuSnapshot.getTabsCountVariable(index, true));
    ConfFileTableTab[] leftTabs = new ConfFileTableTab[nbTabsInLeftPanel];
    for (int i=0; i<nbTabsInLeftPanel; ++i)
      leftTabs[i] = new ConfFileTableTab(
                  snapshot.getBooleanVariable(MuSnapshot.getTabLockedVariable(index, true, i)),
                  restoreFileURL(snapshot.getVariable(MuSnapshot.getTabLocationVariable(index, true, i))),
                  snapshot.getVariable(MuSnapshot.getTabTitleVariable(index, true, i)));
   
    int nbTabsInRightPanel = snapshot.getIntegerVariable(MuSnapshot.getTabsCountVariable(index, false));
    ConfFileTableTab[] rightTabs = new ConfFileTableTab[nbTabsInRightPanel];
    for (int i=0; i<nbTabsInRightPanel; ++i)
      rightTabs[i] = new ConfFileTableTab(
                  snapshot.getBooleanVariable(MuSnapshot.getTabLockedVariable(index, false, i)),
                  restoreFileURL(snapshot.getVariable(MuSnapshot.getTabLocationVariable(index, false, i))),
                  snapshot.getVariable(MuSnapshot.getTabTitleVariable(index, false, i)));
   
    MainFrame mainFrame = new MainFrame(
View Full Code Here

  private List<MainFrame> mainFrames = new LinkedList<MainFrame>();
 
  public CommandLineMainFrameBuilder(String[] folders) {
    for(int i=0; i < folders.length; i += 2) {
      mainFrames.add(new MainFrame(
          new ConfFileTableTab(getInitialAbstractPaths(folders[i], FolderPanelType.LEFT)),
          getFileTableConfiguration(FolderPanelType.LEFT, mainFrames.size()),
          new ConfFileTableTab(getInitialAbstractPaths(i < folders.length - 1 ? folders[i + 1] : null, FolderPanelType.RIGHT)),
          getFileTableConfiguration(FolderPanelType.RIGHT, mainFrames.size())));
        }
  }
View Full Code Here

      FolderPanel leftFolderPanel = mainFrame.getLeftPanel();
      FolderPanel rightFolderPanel = mainFrame.getRightPanel();
      FileTable leftFileTable = leftFolderPanel.getFileTable();
      FileTable rightFileTable = rightFolderPanel.getFileTable();

      init(new FolderPanel(this, new ConfFileTableTab[] {new ConfFileTableTab(leftFolderPanel.getCurrentFolder().getURL())}, 0, leftFileTable.getConfiguration()),
             new FolderPanel(this, new ConfFileTableTab[] {new ConfFileTableTab(rightFolderPanel.getCurrentFolder().getURL())}, 0, rightFileTable.getConfiguration()));

      // TODO: Sorting should be part of the FileTable configuration
        this.leftTable.sortBy(leftFileTable.getSortInfo());
        this.rightTable.sortBy(rightFileTable.getSortInfo());
    }
View Full Code Here

TOP

Related Classes of com.mucommander.ui.main.tabs.ConfFileTableTab

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.