@Override protected ILaunchConfigurationType getConfigurationType() { return getLaunchManager().getLaunchConfigurationType( RutaLaunchConfigurationConstants.ID_RUTA_SCRIPT); }
ILaunchConfigurationType getConfigurationType() { return getLaunchManager() .getLaunchConfigurationType("aQute.bnd.launch"); }
ILaunchConfigurationType getConfigurationType() { return getLaunchManager() .getLaunchConfigurationType("aQute.bnd.launch"); }
protected ILaunchConfigurationType getConfigurationType() { return getLaunchManager().getLaunchConfigurationType(IJavaLaunchConfigurationConstants.ID_JAVA_APPLICATION); }
public ILaunchConfigurationType getConfigurationType(){ return getLaunchManager().getLaunchConfigurationType(ConfigurationType); } public ILaunchConfiguration createConfiguration(IResource type){
@Override protected ILaunchConfigurationType getConfigurationType() { return getLaunchManager().getLaunchConfigurationType( this.accessor.getApplicationLaunchConfigurationType()); }
private ILaunchConfiguration[] getGradleLaunchConfigurations() { ILaunchConfigurationType launchConfigurationType = this.launchManager.getLaunchConfigurationType(GradleRunConfigurationDelegate.ID); try { return this.launchManager.getLaunchConfigurations(launchConfigurationType); } catch (CoreException e) { throw new GradlePluginsRuntimeException("Cannot get Gradle launch configurations.", e); } }
/** * Returns the AspectJ launch config type */ protected static ILaunchConfigurationType getAJConfigurationType() { return DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurationType(ASPECTJ_LAUNCH_ID); }
protected ILaunchConfigurationType getConfigurationType() { ILaunchManager lm= DebugPlugin.getDefault().getLaunchManager(); return lm.getLaunchConfigurationType(IJavaLaunchConfigurationConstants.ID_JAVA_APPLET); }
@Override protected LaunchConfigurationElement[] getLaunchConfigurations() { final List<ExistingLaunchConfigurationElement> result = new ArrayList<>(); try { final ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager(); ILaunchConfigurationType type = manager.getLaunchConfigurationType( LaunchConfigurationConstants.ID_AGENT_LAUNCH_CONFIGURATION); getLaunchConfiguration(result, type, manager); type = manager.getLaunchConfigurationType(LaunchConfigurationConstants.ID_APPLICATION_LAUNCH_CONFIGURATION); getLaunchConfiguration(result, type, manager); } catch (CoreException e) { JavaPlugin.log(e); } return result.toArray(new LaunchConfigurationElement[result.size()]); }
public static ILaunchConfigurationType getLaunchConfigType() { return DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurationType(ROUTINE_LAUNCH_CONFIGURATION_TYPE); }
protected ILaunchConfigurationType getWorkbenchLaunchConfigType() { ILaunchManager lm = DebugPlugin.getDefault().getLaunchManager(); return lm.getLaunchConfigurationType(EclipseLaunchShortcut.CONFIGURATION_TYPE); }
@Override protected ILaunchConfigurationType getLaunchConfigType() { return getLaunchManager().getLaunchConfigurationType(getLaunchConfigID()); }
ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager(); ILaunchConfigurationType type = manager.getLaunchConfigurationType("org.eclipse.cdt.launch.applicationLaunchType"); ILaunchConfiguration[] lcs = manager.getLaunchConfigurations(type); for (ILaunchConfiguration iLaunchConfiguration : lcs) { if (iLaunchConfiguration.getName().equals("Test PThread")) { ILaunchConfigurationWorkingCopy t = iLaunchConfiguration.getWorkingCopy(); ILaunchConfiguration config = t.doSave(); if (config != null) { // config.launch(ILaunchManager.RUN_MODE, null); DebugUITools.launch(config, ILaunchManager.DEBUG_MODE); } } }
private ILaunchConfiguration[] getLaunchConfigurations() throws CoreException { ArrayList<ILaunchConfiguration> result = new ArrayList<>(); ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager(); ILaunchConfigurationType type = manager.getLaunchConfigurationType(EclipseLaunchShortcut.CONFIGURATION_TYPE); ILaunchConfiguration[] configs = manager.getLaunchConfigurations(type); for (int i = 0; i < configs.length; i++) { if (!DebugUITools.isPrivate(configs[i])) { String path = configs[i].getAttribute(IPDELauncherConstants.PRODUCT_FILE, ""); //$NON-NLS-1$ if (new Path(fPath).equals(new Path(path))) { result.add(configs[i]); } } } return result.toArray(new ILaunchConfiguration[result.size()]); }
private static ILaunchConfiguration[] getAntLaunchConfigurations() throws CoreException { ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager(); // Ant launch configurations ILaunchConfigurationType configurationType = manager.getLaunchConfigurationType(IAntLaunchConstants.ID_ANT_LAUNCH_CONFIGURATION_TYPE); ILaunchConfiguration[] configs = manager.getLaunchConfigurations(configurationType); return configs; }
private ILaunchConfigurationDelegate getLaunchDelegate(String launchtype) throws CoreException { ILaunchConfigurationType type = DebugPlugin.getDefault().getLaunchManager() .getLaunchConfigurationType(launchtype); if (type == null) { throw new CoreException( EclEmmaStatus.UNKOWN_LAUNCH_TYPE_ERROR.getStatus(launchtype)); } return type.getDelegates(Collections.singleton(DELEGATELAUNCHMODE))[0] .getDelegate(); }
private String[] getLaunchConfigurations() { TreeSet<String> launcherNames = new TreeSet<>(Collator.getInstance()); try { ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager(); String[] types = new String[] {EclipseLaunchShortcut.CONFIGURATION_TYPE, IPDELauncherConstants.OSGI_CONFIGURATION_TYPE}; for (int j = 0; j < 2; j++) { ILaunchConfigurationType type = manager.getLaunchConfigurationType(types[j]); ILaunchConfiguration[] configs = manager.getLaunchConfigurations(type); for (int i = 0; i < configs.length; i++) { if (!DebugUITools.isPrivate(configs[i])) launcherNames.add(configs[i].getName()); } } } catch (CoreException e) { } return launcherNames.toArray(new String[launcherNames.size()]); }
ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager(); ILaunchConfigurationType antType = launchManager.getLaunchConfigurationType(IExternalToolConstants.ID_PROGRAM_BUILDER_LAUNCH_CONFIGURATION_TYPE); ILaunchConfigurationWorkingCopy workingCopy = antType.newInstance(BuilderUtils.getBuilderFolder(project, true), "lstest" ); workingCopy.setAttribute(IDebugUIConstants.ATTR_LAUNCH_IN_BACKGROUND, false); workingCopy.setAttribute(IExternalToolConstants.ATTR_LOCATION, "${project_loc}\\YOUR_SHELL_SCRIPT"); workingCopy.setAttribute(....); ILaunchConfiguration ilc = workingCopy.doSave();
@Override public void updateClasspathProviders(IProject project) { try { ILaunchManager configManager = DebugPlugin.getDefault().getLaunchManager(); for (SupportedLaunchConfigType supportedType : SupportedLaunchConfigType.values()) { ILaunchConfigurationType type = configManager.getLaunchConfigurationType(supportedType.getId()); for (ILaunchConfiguration config : configManager.getLaunchConfigurations(type)) { if (hasProject(config, project)) { updateClasspathProvider(config); } } } } catch (CoreException e) { CorePlugin.logger().warn("Cannot update classpath provider", e); } }