AbstractFileLoader loader = ConverterUtils.getLoaderForFile(args[0]); loader.setFile(new File(args[0])); m_workbench.getPerspectiveManager().getMainPerspective() .setInstances(loader.getDataSet());
AbstractFileLoader loader = ConverterUtils.getLoaderForFile(args[0]); loader.setFile(new File(args[0])); m_workbench.getPerspectiveManager().getMainPerspective() .setInstances(loader.getDataSet());
/** * Constructor * * @param layoutComponent true if the Knowledge Flow should layout the * application using the default layout - i.e. the perspectives * toolbar at the north of a {@code BorderLayout} and the * {@code PerspectiveManager} at the center */ public KnowledgeFlowApp(boolean layoutComponent) { super(layoutComponent, "weka.gui.knowledgeflow", "weka.gui.SimpleCLIPanel"); // add an initial "untitled" tab ((MainKFPerspective) m_perspectiveManager.getMainPerspective()) .addUntitledTab(); m_perspectiveManager .addSettingsMenuItemToProgramMenu(getApplicationSettings()); if (m_perspectiveManager .userRequestedPerspectiveToolbarVisibleOnStartup(getApplicationSettings())) { showPerspectivesToolBar(); } }
/** * Constructor * * @param layoutComponent true if the Knowledge Flow should layout the * application using the default layout - i.e. the perspectives * toolbar at the north of a {@code BorderLayout} and the * {@code PerspectiveManager} at the center */ public KnowledgeFlowApp(boolean layoutComponent) { super(layoutComponent, "weka.gui.knowledgeflow", "weka.gui.SimpleCLIPanel"); // add an initial "untitled" tab ((MainKFPerspective) m_perspectiveManager.getMainPerspective()) .addUntitledTab(); m_perspectiveManager .addSettingsMenuItemToProgramMenu(getApplicationSettings()); if (m_perspectiveManager .userRequestedPerspectiveToolbarVisibleOnStartup(getApplicationSettings())) { showPerspectivesToolBar(); } }