ILaunchConfigurationType configType = getJavaLaunchConfigType(); String elementName = type.getElementName(); String projectName = type.getJavaProject().getProject().getName(); String launchName = projectName + ": " + elementName; wc = configType.newInstance(null, getLaunchManager().generateUniqueLaunchConfigurationNameFrom(launchName)); } catch (CoreException exception) { reportErorr(exception); return null; } wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, type.getFullyQualifiedName()); wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, type.getJavaProject().getElementName()); WOJavaLocalApplicationLaunchConfigurationDelegate.initConfiguration(wc); try {
ILaunchConfigurationWorkingCopy wc = config.getWorkingCopy(); WOJavaLocalApplicationLaunchConfigurationDelegate.initConfiguration(wc);
	protected ILaunchConfiguration createConfiguration(IType type) {		ILaunchConfiguration config = null;		ILaunchConfigurationWorkingCopy wc = null;		try {			ILaunchConfigurationType configType = getJavaLaunchConfigType();			String elementName = type.getElementName();			String projectName = type.getJavaProject().getProject().getName();			String launchName = projectName + ": " + elementName;			wc = configType.newInstance(null, getLaunchManager().generateUniqueLaunchConfigurationNameFrom(launchName));		} catch (CoreException exception) {			reportErorr(exception);			return null;		}		wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, type.getFullyQualifiedName());		wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, type.getJavaProject().getElementName());		WOJavaLocalApplicationLaunchConfigurationDelegate.initConfiguration(wc);		try {			config = wc.doSave();		} catch (CoreException exception) {			reportErorr(exception);		}		return config;	}