IResource aRes = ((IContainer) res).findMember(aPath.toString() + ".woa");
IResource aDistRes = ((IContainer) res).findMember("dist"); IResource aRes; if (aDistRes instanceof IContainer && aDistRes.exists()) aRes = ((IContainer) aDistRes).findMember( aPath.toString() + ".woa"); else aRes = ((IContainer) res).findMember( aPath.toString() + ".woa");
	private String getDefaultArguments(ILaunchConfigurationWorkingCopy config) {		try {			String path =				config.getAttribute(					IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME,					(String) null);			IPath aPath = null;			if (path != null) {				aPath = new Path(path);			}			IResource res =				ResourcesPlugin.getWorkspace().getRoot().findMember(path);			if (res instanceof IContainer && res.exists()) {				IResource aRes =					((IContainer) res).findMember(aPath.toString() + ".woa");				if (aRes != null) {					if (aRes instanceof IContainer && aRes.exists()) {						config.setAttribute(							IJavaLaunchConfigurationConstants								.ATTR_WORKING_DIRECTORY,							((IContainer) aRes)								.getFullPath()								.toString()								.substring(								1));					}				}			}		} catch (Exception anException) {			WOLipsLog.log(anException);		}		return Preferences.getString(IWOLipsPluginConstants.PREF_LAUNCH_GLOBAL);	}