/** Copy constructor */ public MainFrame(MainFrame mainFrame) { 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()); }
public PopupLeftDriveButtonAction(MainFrame mainFrame, Map<String, Object> properties) { super(mainFrame, properties); mainFrame.getLeftPanel().getTabs().addActiveTabListener(this); activeTabChanged(); }