if (launchArguments != null && launchArguments.indexOf("<>-EOAdaptorDebugEnabled=<>") != -1) { launchArguments = launchArguments.replaceAll("\\Q<>-EOAdaptorDebugEnabled=<>\\E", "<>-EOAdaptorDebugEnabled<>"); }
	public String getProgramArguments(ILaunchConfiguration configuration)			throws CoreException {		StringBuffer launchArgument = new StringBuffer(super				.getProgramArguments(configuration));		launchArgument.append(" ");		JavaProject javaProject = (JavaProject) (this				.getJavaProject(configuration).getAdapter(JavaProject.class));		String mainTypeName = verifyMainTypeName(configuration);		File workingDir = verifyWorkingDirectory(configuration);		String launchArguments = configuration				.getAttribute(						WOJavaLocalApplicationLaunchConfigurationDelegate.ATTR_WOLIPS_LAUNCH_WOARGUMENTS,						Preferences.getPREF_LAUNCH_GLOBAL());		ILaunchInfo[] launchInfo = Preferences				.getLaunchInfoFrom(launchArguments);		String automatic = "Automatic";		for (int i = 0; i < launchInfo.length; i++) {			if (launchInfo[i].isEnabled()) {				// -WOApplicationClassName				String parameter = launchInfo[i].getParameter();				String argument = launchInfo[i].getArgument();				if (automatic.equals(argument)) {					if ("-WOApplicationClassName".equals(parameter))						argument = mainTypeName;					if ("-DWORoot=".equals(parameter)) {						argument = VariablesPlugin.getDefault().getSystemRoot()								.toOSString();						if (javaProject.isOnMacOSX()) {							parameter = "";							argument = "";						}					}					if ("-DWORootDirectory=".equals(parameter)) {						argument = VariablesPlugin.getDefault().getSystemRoot()								.toOSString();						if (javaProject.isOnMacOSX()) {							parameter = "";							argument = "";						}					}					if ("-DWOUserDirectory=".equals(parameter)) {						argument = workingDir.getAbsolutePath();					}					if ("-NSProjectSearchPath".equals(parameter)) {            IProject theProject = this.getJavaProject(configuration).getProject();						argument = javaProject.getGeneratedByWOLips(Preferences								.getPREF_NS_PROJECT_SEARCH_PATH());					}				}				launchArgument.append(StringUtilities						.toCommandlineParameterFormat(parameter, argument));				launchArgument.append(" ");			}		}		String debugGroups = configuration				.getAttribute(						WOJavaLocalApplicationLaunchConfigurationDelegate.ATTR_WOLIPS_LAUNCH_DEBUG_GROUPS,						"");		if (debugGroups != null && debugGroups.length() > 0) {			launchArgument.append(" -DNSDebugGroups=\"(");			launchArgument.append(debugGroups);			launchArgument.append(")\"");		}		return launchArgument.toString();	}