* Returns a {@link ApplicationLaunchConfigurationDelegate} object or <code>null</code> if it can not find such an object.
* @return a {@link ApplicationLaunchConfigurationDelegate} object or <code>null</code> if it can not find such an object.
*/
public static ApplicationLaunchConfigurationDelegate getLaunchConfigurationDelegate() {
ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
ILaunchConfigurationType type = manager.getLaunchConfigurationType(ApplicationLaunchConfigurationDelegate.XVR_LAUNCH_CONFIGURATION_ID);
HashSet<String> modes = new HashSet<String>();
modes.add(ILaunchManager.DEBUG_MODE);
/*modes.add(ILaunchManager.RUN_MODE);
*/
ILaunchDelegate[] delegates = null;
try {
delegates = type.getDelegates(modes);
for (ILaunchDelegate delegate : delegates)
if(delegate.getDelegate().getClass().equals(ApplicationLaunchConfigurationDelegate.class))
return (ApplicationLaunchConfigurationDelegate) delegate.getDelegate();
} catch (CoreException e) {