fWebAppDir.setText(configuration.getAttribute(TomcatLaunchDelegate.ATTR_WEB_APP_ROOT, ""));
fProjectText.setText(configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, ""));
	public void initializeFrom(ILaunchConfiguration configuration) {		try {			fTomcatDir.setText(configuration.getAttribute(TomcatLaunchDelegate.ATTR_CATALINA_HOME, "")); //$NON-NLS-1$			fWebAppDir.setText(configuration.getAttribute(TomcatLaunchDelegate.ATTR_WEB_APP_ROOT, "")); //$NON-NLS-1$			if (configuration.isWorkingCopy()) {				// set VM args				ILaunchConfigurationWorkingCopy workingCopy = (ILaunchConfigurationWorkingCopy)configuration;				String home = TomcatLaunchDelegate.getCatalinaHome();				IPath endorsed = new Path(home).append("common").append("endorsed");  //$NON-NLS-1$//$NON-NLS-2$				IPath temp = new Path(home).append("temp"); //$NON-NLS-1$				StringBuffer args = new StringBuffer();				args.append("-Djava.endorsed.dirs=\""); //$NON-NLS-1$				args.append(endorsed.toOSString());				args.append("\" "); //$NON-NLS-1$				args.append("-Dcatalina.base=\""); //$NON-NLS-1$				args.append(home);				args.append("\" "); //$NON-NLS-1$				args.append("-Dcatalina.home=\""); //$NON-NLS-1$				args.append(home);				args.append("\" "); //$NON-NLS-1$				args.append("-Djava.io.tmpdir=\""); //$NON-NLS-1$				args.append(temp.toOSString());				args.append("\"");  //$NON-NLS-1$				workingCopy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, args.toString());				workingCopy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, "start"); //$NON-NLS-1$			}		} catch (CoreException e) {			setErrorMessage(e.getMessage());			DebugPlugin.log(e);		}	}