public String[] getCommandLineArgs() { return Platform.getCommandLineArgs(); }
protected boolean refreshRequested() { String[] args = Platform.getCommandLineArgs(); for (String arg : args) if (arg.equalsIgnoreCase(REFRESH_ON_STARTUP)) return true; return false; }
protected boolean refreshRequested() { String[] args = Platform.getCommandLineArgs(); for (int i = 0; i < args.length; i++) if (args[i].equalsIgnoreCase(REFRESH_ON_STARTUP)) return true; return false; }
protected boolean refreshRequested() { String[] args = Platform.getCommandLineArgs(); for (int i = 0; i < args.length; i++) if (args[i].equalsIgnoreCase(REFRESH_ON_STARTUP)) return true; return false; }
/** * It is possible since Eclipse 3.5 to configure custom status handling * using the -statushandler parameter. * * @return the id of the statushandler * @since 3.5 */ private String resolveUserStatusHandlerId(){ String[] parameters = Platform.getCommandLineArgs(); for(int i = 0; i < parameters.length - 1; i++){ if(STATUSHANDLER_ARG.equals(parameters[i])){ return parameters[i + 1]; } } return null; }
public Object run(Object object) throws Exception { String[] args = Platform.getCommandLineArgs(); return Integer.valueOf(OsgiSurefireBooter.run(args)); }
String[] args = Platform.getCommandLineArgs(); for (int i = 0; i < args.length; i++) { if ("-dir".equalsIgnoreCase(args[i])) { //$NON-NLS-1$
String[] commandLineArgs = Platform.getCommandLineArgs(); String bidiParams = null;
private void refreshFromLocal() { String[] commandLineArgs = Platform.getCommandLineArgs(); IPreferenceStore store = IDEWorkbenchPlugin.getDefault() .getPreferenceStore(); boolean refresh = store .getBoolean(IDEInternalPreferences.REFRESH_WORKSPACE_ON_STARTUP); if (!refresh) { return; } // Do not refresh if it was already done by core on startup. for (String commandLineArg : commandLineArgs) { if (commandLineArg.equalsIgnoreCase("-refresh")) { //$NON-NLS-1$ return; } } final IContainer root = ResourcesPlugin.getWorkspace().getRoot(); Job job = new WorkspaceJob(IDEWorkbenchMessages.Workspace_refreshing) { @Override public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException { root.refreshLocal(IResource.DEPTH_INFINITE, monitor); return Status.OK_STATUS; } }; job.setRule(root); job.schedule(); }
/** * Get the default orientation from the command line arguments. If there are * no arguments imply the orientation. * * @return int * @see SWT#NONE * @see SWT#RIGHT_TO_LEFT * @see SWT#LEFT_TO_RIGHT */ private int getDefaultOrientation() { String[] commandLineArgs = Platform.getCommandLineArgs(); int orientation = getCommandLineOrientation(commandLineArgs); if(orientation != SWT.NONE) { return orientation; } orientation = getSystemPropertyOrientation(); if(orientation != SWT.NONE) { return orientation; } return checkCommandLineLocale(); //Use the default value if there is nothing specified }
String[] commandLineArgs = Platform.getCommandLineArgs(); for (String commandLineArg : commandLineArgs) { if (commandLineArg.equalsIgnoreCase("-allowDeadlock")) { //$NON-NLS-1$
Object obj = getApplication(Platform.getCommandLineArgs());