ILaunchConfiguration config = null;
ILaunchConfigurationWorkingCopy wc = null;
try {
ILaunchConfigurationType configType = getConfigurationType();
wc = configType.newInstance(null, DebugPlugin.getDefault().getLaunchManager().generateLaunchConfigurationName(resource.getProject().getName() + " Configuration"));
//wc.setAttribute(IXVRConstants.ATTR_XVR_COMPILER, "C:\\VRMedia\\s3dc.exe");
wc.setAttribute(IXVRConstants.ATTR_XVR_VM, "C:\\VRMedia\\XVRGlut.exe");
//wc.setAttribute(IXVRConstants.ATTR_XVR_HEADERS, "C:\\VRMedia\\Include\n");
wc.setAttribute(IXVRConstants.ATTR_XVR_BROWSER, "C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe");
XVRMainTab.fillConfigurationFromPath(wc, resource.getFullPath().toString());