Package cx.fbn.nevernote.config

Examples of cx.fbn.nevernote.config.StartupConfig


        }
        return;
    }

  private static void initializeGlobalSettings(String[] args) throws InitializationException {
    StartupConfig  startupConfig = new StartupConfig();

        for (String arg : args) {
            String lower = arg.toLowerCase();
            if (lower.startsWith("--name="))
               startupConfig.setName(arg.substring(arg.indexOf('=') + 1));
            if (lower.startsWith("--home="))
               startupConfig.setHomeDirPath(arg.substring(arg.indexOf('=') + 1));
            if (lower.startsWith("--disable-viewing"))
               startupConfig.setDisableViewing(true);
            if (lower.startsWith("--sync-only=true"))
                startupConfig.setSyncOnly(true);
        }
        Global.setup(startupConfig);
       
    }
View Full Code Here

TOP

Related Classes of cx.fbn.nevernote.config.StartupConfig

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.