1 11 package org.eclipse.ant.internal.ui.launchConfigurations; 12 13 import org.eclipse.core.runtime.CoreException; 14 import org.eclipse.core.runtime.IProgressMonitor; 15 import org.eclipse.debug.core.ILaunchConfiguration; 16 import org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants; 17 import org.eclipse.jdt.launching.JavaLaunchDelegate; 18 19 23 public class AntJavaLaunchDelegate extends JavaLaunchDelegate { 24 27 public boolean preLaunchCheck(ILaunchConfiguration configuration,String mode, IProgressMonitor monitor) throws CoreException { 28 try { 29 return super.preLaunchCheck(configuration, mode, monitor); 30 } catch (CoreException ce) { 31 } 33 return true; 35 } 36 37 40 public String getProgramArguments(ILaunchConfiguration configuration) throws CoreException { 41 try { 42 return super.getProgramArguments(configuration); 43 } catch (CoreException ce) { 44 } 45 return configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, ""); } 47 } 48 | Popular Tags |