public void setDefaults(ILaunchConfigurationWorkingCopy config) { config.setAttribute(IPDELauncherConstants.INCLUDE_OPTIONAL, true); config.setAttribute(IPDELauncherConstants.AUTOMATIC_ADD, true); config.setAttribute(IPDELauncherConstants.AUTOMATIC_VALIDATE, true); config.setAttribute(IPDELauncherConstants.SHOW_SELECTED_ONLY, false); }
/** * @param configuration * @param triggerParams */ private static void saveEventParameter(ILaunchConfigurationWorkingCopy wc, Map triggerParams) { wc.setAttribute(ROUTINE_LAUNCH_EVENTPARAMS, triggerParams); }
public void setDefaults(ILaunchConfigurationWorkingCopy config) { config.setAttribute(IPDELauncherConstants.SHOW_SELECTED_ONLY, false); config.setAttribute(IPDELauncherConstants.FEATURE_DEFAULT_LOCATION, IPDELauncherConstants.LOCATION_WORKSPACE); config.setAttribute(IPDELauncherConstants.FEATURE_PLUGIN_RESOLUTION, IPDELauncherConstants.LOCATION_WORKSPACE); config.setAttribute(IPDELauncherConstants.AUTOMATIC_VALIDATE, true); }
/** * @see org.eclipse.debug.ui.ILaunchConfigurationTab#setDefaults(ILaunchConfigurationWorkingCopy) */ public void setDefaults(ILaunchConfigurationWorkingCopy configuration) { // be default, use a prompting source locator configuration.setAttribute(ILaunchConfiguration.ATTR_SOURCE_LOCATOR_ID, JavaUISourceLocator.ID_PROMPTING_JAVA_SOURCE_LOCATOR); configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_DEFAULT_SOURCE_PATH, (String)null); configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_SOURCE_PATH, (List)null); }
/** * Defaults are empty. * * @see org.eclipse.debug.ui.ILaunchConfigurationTab#setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy) */ public void setDefaults(ILaunchConfigurationWorkingCopy config) { config.setAttribute(IJavaLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY, (String)null); }
@Override public void setLaunchingFlags(ILaunchConfigurationWorkingCopy configuration, Boolean showLogo, Boolean showLogInfo, Boolean offline) { configuration.setAttribute(ATTR_SHOW_LOGO_OPTION, showLogo == null ? DEFAULT_SHOW_LOGO : showLogo.booleanValue()); configuration.setAttribute(ATTR_SHOW_LOG_INFO, showLogInfo == null ? DEFAULT_SHOW_LOG_INFO : showLogInfo.booleanValue()); configuration.setAttribute(ATTR_SRE_OFFLINE, offline == null ? DEFAULT_OFFLINE : offline.booleanValue()); }
@Override public void initDefaultLaunchConfiguration(ILaunchConfigurationWorkingCopy wc, ILaunchRequest request) throws Exception { wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, MAIN_CLASS_NAME); // wc.setAttribute( // IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, main // .makeArgs()); wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, makeVMArgs()); wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, STUDIO_PROJECT_NAME); }
public void performApply(ILaunchConfigurationWorkingCopy configuration) { configuration.setAttribute(ATTR_REPORT, wReport.getSelection()); configuration .setAttribute(ATTR_KEEP, wKeep.getSelection()); }
public void setDefaults(ILaunchConfigurationWorkingCopy config) { String product = TargetPlatform.getDefaultProduct(); if (product != null) { config.setAttribute(IPDELauncherConstants.USE_PRODUCT, true); config.setAttribute(IPDELauncherConstants.PRODUCT, product); } }
public void performApply(ILaunchConfigurationWorkingCopy configuration) { if(fUseDefaultDirButton.getSelection()) { configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY, (String)null); } else { configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY, getWorkingDirectoryText()); } }
@Override public void performApply(ILaunchConfigurationWorkingCopy configuration) { if(fUseDefaultDirButton.getSelection()) { configuration.setAttribute(workingDirectoryAttribteName, (String)null); } else { configuration.setAttribute(workingDirectoryAttribteName, getWorkingDirectoryText()); } }
public void performApply(ILaunchConfigurationWorkingCopy config) { config.setAttribute(IPDELauncherConstants.INCLUDE_OPTIONAL, fIncludeOptionalButton.getSelection()); config.setAttribute(IPDELauncherConstants.AUTOMATIC_ADD, fAddWorkspaceButton.getSelection()); config.setAttribute(IPDELauncherConstants.AUTOMATIC_VALIDATE, fAutoValidate.getSelection()); config.setAttribute(IPDELauncherConstants.SHOW_SELECTED_ONLY, fFilterButton.getSelection()); savePluginState(config); updateCounter(); }
public void performApply(ILaunchConfigurationWorkingCopy config) { config.setAttribute(IPDELauncherConstants.SHOW_SELECTED_ONLY, fFilterButton.getSelection()); config.setAttribute(IPDELauncherConstants.FEATURE_DEFAULT_LOCATION, fFeatureWorkspaceButton.getSelection() ? IPDELauncherConstants.LOCATION_WORKSPACE : IPDELauncherConstants.LOCATION_EXTERNAL); config.setAttribute(IPDELauncherConstants.FEATURE_PLUGIN_RESOLUTION, fWorkspacePluginButton.getSelection() ? IPDELauncherConstants.LOCATION_WORKSPACE : IPDELauncherConstants.LOCATION_EXTERNAL); config.setAttribute(IPDELauncherConstants.AUTOMATIC_VALIDATE, fAutoValidate.getSelection()); savePluginState(config); saveSortOrder(); updateCounter(); }
private void updateLaunchConfiguration(ILaunchConfigurationWorkingCopy configuration, Map<String, String> plusEntries, Set<String> minusEntries) { for (String key : plusEntries.keySet()) { configuration.setAttribute(key, plusEntries.get(key)); } for (String key : minusEntries) { configuration.removeAttribute(key); } }
public void setDefaults(ILaunchConfigurationWorkingCopy configuration, boolean isJUnit) { configuration.setAttribute(IPDELauncherConstants.CONFIG_CLEAR_AREA, isJUnit); boolean useDefaultArea = !isJUnit || LaunchArgumentsHelper.getDefaultJUnitWorkspaceIsContainer(); configuration.setAttribute(IPDELauncherConstants.CONFIG_USE_DEFAULT_AREA, useDefaultArea); String location; if (isJUnit && !useDefaultArea) { location = LaunchArgumentsHelper.getDefaultJUnitConfigurationLocation(); } else { location = DEFAULT_DIR + configuration.getName(); } configuration.setAttribute(IPDELauncherConstants.CONFIG_LOCATION, location); }
/** * @see #getUrlQueryParams()() */ public void setUrlQueryParams(String value) { getWorkingCopy().setAttribute(URL_QUERY_PARAMS, value); }
private void initializeVMArguments(ILaunchConfigurationWorkingCopy wc) { String vmArgs = LaunchArgumentsHelper.getInitialVMArguments(); if (vmArgs.length() > 0) wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, vmArgs); }
/** * Sets attributes on the configuration based on the current state of the UI elements * @param configuration configuration to modify */ public void performApply(ILaunchConfigurationWorkingCopy configuration) { if (fGenerateProfileButton.getSelection()) { configuration.setAttribute(IPDELauncherConstants.GENERATE_PROFILE, true); } else { configuration.removeAttribute(IPDELauncherConstants.GENERATE_PROFILE); } }
@Override public void performApply(ILaunchConfigurationWorkingCopy config) { junitLaunchTab.performApply(config); boolean selection = runInUIThread.getSelection(); config.setAttribute(IPDELauncherConstants.RUN_IN_UI_THREAD, selection); }
/** * @see org.eclipse.debug.ui.ILaunchConfigurationTab#performApply(ILaunchConfigurationWorkingCopy) */ public void performApply(ILaunchConfigurationWorkingCopy configuration) { configuration.setAttribute(ILaunchConfiguration.ATTR_SOURCE_LOCATOR_ID, JavaUISourceLocator.ID_PROMPTING_JAVA_SOURCE_LOCATOR); fSourceLookupBlock.performApply(configuration); }