Package org.freeplane.main.application.CommandLineParser

Examples of org.freeplane.main.application.CommandLineParser.Options


    controller.selectModeForBuild(modeController);
    Compat.macMenuChanges();
    new UserPropertiesUpdater().importOldDefaultStyle();
    EventQueue.invokeLater(new Runnable() {
      public void run() {
          final Options options = CommandLineParser.parse(args);
        viewController.init(Controller.getCurrentController());
        splash.toBack();
        final Frame frame = viewController.getFrame();
        final int extendedState = frame.getExtendedState();
        Container contentPane = viewController.getContentPane();
        contentPane.setVisible(false);
        splash.dispose();
        splash = null;
        frame.setVisible(true);
        if (extendedState != frame.getExtendedState()) {
          frame.setExtendedState(extendedState);
        }
        loadMaps(options.getFilesToOpenAsArray());
        focusCurrentView();
        viewController.getContentPane().setVisible(true);
        frame.toFront();
        startupFinished = true;
            System.setProperty("nonInteractive", Boolean.toString(options.isNonInteractive()));
            try {
                    Thread.sleep(1000);
                }
                catch (InterruptedException e) {
                    e.printStackTrace();
                }
                MenuUtils.executeMenuItems(options.getMenuItemsToExecute());
            }

      private void focusCurrentView() {
        final MapView currentMapView = (MapView) Controller.getCurrentController().getMapViewManager().getMapViewComponent();
        if(currentMapView != null){
View Full Code Here


    isSingleInstanceMode = resourceController.getBooleanProperty("single_instance");
    isSingleInstanceForceMode = resourceController.getBooleanProperty("single_instance_force");
  }

  public void start(String[] args) {
        final Options options = CommandLineParser.parse(args);
        final String[] filesToLoad = options.getFilesToOpenAsArray();
    if (isSingleInstanceMode && !options.hasMenuItemsToExecute()) {
      initLockFile();
      if (filesToLoad.length == 0 && !isSingleInstanceForceMode && checkIsMasterPresent()) {
        isMasterPresent = true;
        startStandAlone(filesToLoad);
      }
View Full Code Here

        resetUserDir();
    }
   
    @Test
    public void testFilesOnly() {
        final Options result = CommandLineParser.parse(someFiles);
        assertEquals(Arrays.asList(someFiles), result.getFilesToOpen());
        check(result, someFiles, emptyArray, false, false, false);
    }
View Full Code Here

TOP

Related Classes of org.freeplane.main.application.CommandLineParser.Options

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.