A massive organize imports and formatting of the sources using default Eclipse code...
[phpeclipse.git] / net.sourceforge.phpeclipse.launching / src / net / sourceforge / phpdt / internal / launching / PHPLaunchConfigurationDelegate.java
index 881ad17..d4c0680 100644 (file)
@@ -24,45 +24,50 @@ import org.eclipse.debug.core.model.ILaunchConfigurationDelegate;
 import org.eclipse.debug.core.model.LaunchConfigurationDelegate;
 
 public class PHPLaunchConfigurationDelegate extends LaunchConfigurationDelegate {
-       
+
        protected static final InterpreterRunner interpreterRunner;
+
        protected static final DebuggerRunner debuggerRunner;
-       
+
        static {
-               interpreterRunner  = new InterpreterRunner();
+               interpreterRunner = new InterpreterRunner();
                debuggerRunner = new DebuggerRunner();
        }
 
-       /** (non-Javadoc)
-        * @see org.eclipse.debug.core.model.ILaunchConfigurationDelegate2#getLaunch(org.eclipse.debug.core.ILaunchConfiguration, java.lang.String)
+       /**
+        * (non-Javadoc)
+        * 
+        * @see org.eclipse.debug.core.model.ILaunchConfigurationDelegate2#getLaunch(org.eclipse.debug.core.ILaunchConfiguration,
+        *      java.lang.String)
         */
-       public ILaunch getLaunch(ILaunchConfiguration configuration, String mode) 
-       throws CoreException {
+       public ILaunch getLaunch(ILaunchConfiguration configuration, String mode)
+                       throws CoreException {
                PHPSourceLocator locator = new PHPSourceLocator();
                locator.initializeDefaults(configuration);
                return new Launch(configuration, mode, locator);
        }
-       
+
        /**
-        * @see ILaunchConfigurationDelegate#launch(ILaunchConfiguration, String, ILaunch, IProgressMonitor)
+        * @see ILaunchConfigurationDelegate#launch(ILaunchConfiguration, String,
+        *      ILaunch, IProgressMonitor)
         */
-       public void 
-       launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException {
+       public void launch(ILaunchConfiguration configuration, String mode,
+                       ILaunch launch, IProgressMonitor monitor) throws CoreException {
                if (PHPRuntime.getDefault().getSelectedInterpreter() == null) {
                        String pid = PHPLaunchingPlugin.PLUGIN_ID;
                        String msg = "You must define an interpreter before running PHP.";
                        IStatus s = new Status(IStatus.ERROR, pid, IStatus.OK, msg, null);
                        throw new CoreException(s);
                }
-               
-               InterpreterRunnerConfiguration conf = new 
-                       InterpreterRunnerConfiguration(configuration);
+
+               InterpreterRunnerConfiguration conf = new InterpreterRunnerConfiguration(
+                               configuration);
                ILaunchManager m = DebugPlugin.getDefault().getLaunchManager();
                conf.setEnvironment(m.getEnvironment(configuration));
                if (mode.equals("debug")) {
                        debuggerRunner.run(conf, launch);
                } else {
                        interpreterRunner.run(conf, launch);
-               }               
+               }
        }
 }