String webApp = getAttributeValueFrom(fWebAppDir); configuration.setAttribute(TomcatLaunchDelegate.ATTR_WEB_APP_ROOT, webApp);  if (webApp != null) { IResource resource = ResourcesPlugin.getWorkspace().getRoot().findMember(new Path(webApp)); if (resource != null) { configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, resource.getProject().getName()); } }
String projectName = getAttributeValueFrom(fProjectText); configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, projectName);
	public void performApply(ILaunchConfigurationWorkingCopy configuration) {		configuration.setAttribute(TomcatLaunchDelegate.ATTR_CATALINA_HOME, getAttributeValueFrom(fTomcatDir));		String webApp = getAttributeValueFrom(fWebAppDir);		configuration.setAttribute(TomcatLaunchDelegate.ATTR_WEB_APP_ROOT, webApp);		// set project (if there is one)		if (webApp != null) {			IResource resource = ResourcesPlugin.getWorkspace().getRoot().findMember(new Path(webApp));			if (resource != null) {				configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, resource.getProject().getName());			}		}			}