public String uniqueLCName(String prefix) { return getLaunchManager().generateUniqueLaunchConfigurationNameFrom(prefix); }
@Override public String generateUniqueLaunchConfigurationName() { String prefix = "Open " + resource.getName() + " in WebStudio"; return getLaunchManager().generateUniqueLaunchConfigurationNameFrom(prefix); }
@Override public String generateUniqueLaunchConfigurationName() { String prefix = source.getName(); return getLaunchManager().generateUniqueLaunchConfigurationNameFrom(prefix); }
protected void setupLaunchConfiguration(ILaunchConfigurationWorkingCopy config, IServer server, ModuleArtifactDelegate moduleArtifact, ILaunchableAdapter launchableAdapter, IClient client) { String launchName = NLS.bind(Messages.runOnServerLaunchConfigName, moduleArtifact.getName()); launchName = getValidLaunchConfigurationName(launchName); if (!launchName.equals(config.getName())) { ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager(); launchName = launchManager.generateUniqueLaunchConfigurationNameFrom(launchName); config.rename(launchName); } config.setAttribute(RunOnServerLaunchConfigurationDelegate.ATTR_SERVER_ID, server.getId()); config.setAttribute(RunOnServerLaunchConfigurationDelegate.ATTR_MODULE_ARTIFACT, moduleArtifact.serialize()); config.setAttribute(RunOnServerLaunchConfigurationDelegate.ATTR_MODULE_ARTIFACT_CLASS, moduleArtifact.getClass().getName()); config.setAttribute(RunOnServerLaunchConfigurationDelegate.ATTR_LAUNCHABLE_ADAPTER_ID, launchableAdapter.getId()); config.setAttribute(RunOnServerLaunchConfigurationDelegate.ATTR_CLIENT_ID, client.getId()); }
protected ILaunchConfiguration createConfiguration(IJavaProject type) throws Exception { ILaunchConfiguration config = null; ILaunchConfigurationWorkingCopy wc = null; ILaunchConfigurationType configType = getConfigurationType(); wc = configType.newInstance(null, getLaunchManager() .generateUniqueLaunchConfigurationNameFrom( type.getElementName())); wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, type.getElementName()); config = wc.doSave(); return config; }
protected ILaunchConfiguration createConfiguration(IJavaProject type) throws Exception { ILaunchConfiguration config = null; ILaunchConfigurationWorkingCopy wc = null; ILaunchConfigurationType configType = getConfigurationType(); wc = configType.newInstance(null, getLaunchManager() .generateUniqueLaunchConfigurationNameFrom( type.getElementName())); wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, type.getElementName()); config = wc.doSave(); return config; }
protected ILaunchConfiguration createConfiguration(IType type) { ILaunchConfiguration config = null; ILaunchConfigurationWorkingCopy wc = null; try { ILaunchConfigurationType configType = getAJConfigurationType(); wc = configType.newInstance(null, getLaunchManager().generateUniqueLaunchConfigurationNameFrom(type.getElementName())); wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, type.getFullyQualifiedName()); wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, type.getJavaProject().getElementName()); config = wc.doSave(); } catch (CoreException exception) { reportErorr(exception); } return config; }
launchName = launchManager.generateUniqueLaunchConfigurationNameFrom(launchName); ILaunchConfigurationWorkingCopy wc = launchConfigType.newInstance(null, launchName); wc.setAttribute(RunOnServerLaunchConfigurationDelegate.ATTR_SERVER_ID, serverId);
protected ILaunchConfiguration createConfiguration(IType type) { ILaunchConfiguration config = null; ILaunchConfigurationWorkingCopy wc = null; try { ILaunchConfigurationType configType = getConfigurationType(); wc = configType.newInstance(null, getLaunchManager().generateUniqueLaunchConfigurationNameFrom(type.getElementName())); wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, type.getFullyQualifiedName()); wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, type.getJavaProject().getElementName()); //CONTEXTLAUNCHING wc.setMappedResources(new IResource[] {type.getUnderlyingResource()}); config = wc.doSave(); } catch (CoreException exception) { reportErorr(exception); } return config; }
.generateUniqueLaunchConfigurationNameFrom(newProc.getProcName()); copy.rename(newName);
protected ILaunchConfiguration createConfiguration(IType type) { ILaunchConfiguration config = null; try { ILaunchConfigurationType configType = getConfigurationType(); ILaunchConfigurationWorkingCopy wc = configType.newInstance(null, DebugPlugin.getDefault().getLaunchManager().generateUniqueLaunchConfigurationNameFrom(type.getElementName())); wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, type.getFullyQualifiedName()); wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, type.getJavaProject().getElementName()); wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_APPLET_WIDTH, AppletParametersTab.DEFAULT_APPLET_WIDTH); wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_APPLET_HEIGHT, AppletParametersTab.DEFAULT_APPLET_HEIGHT); wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_APPLET_NAME, ""); //$NON-NLS-1$ //CONTEXTLAUNCHING wc.setMappedResources(new IResource[] {type.getUnderlyingResource()}); config = wc.doSave(); } catch (CoreException ce) { reportErorr(ce); } return config; }
wc = configType.newInstance(null, DebugPlugin.getDefault() .getLaunchManager() .generateUniqueLaunchConfigurationNameFrom( proc.getProcName())); } catch (CoreException exception) {