PHP obfuscator gets it's ignored identifiers from an "obfuscator.xml" file
[phpeclipse.git] / net.sourceforge.phpeclipse.launching / src / net / sourceforge / phpdt / internal / launching / PHPLaunchConfigurationDelegate.java
index 618212e..a1b5e43 100644 (file)
@@ -1,3 +1,14 @@
+/**********************************************************************
+Copyright (c) 2000, 2002 IBM Corp. and others.
+All rights reserved. This program and the accompanying materials
+are made available under the terms of the Common Public License v1.0
+which accompanies this distribution, and is available at
+http://www.eclipse.org/legal/cpl-v10.html
+
+Contributors:
+       IBM Corporation - Initial implementation
+       Vicente Fernando - www.alfersoft.com.ar
+**********************************************************************/
 package net.sourceforge.phpdt.internal.launching;
 
 import org.eclipse.core.runtime.CoreException;
@@ -11,7 +22,7 @@ import org.eclipse.debug.core.model.ILaunchConfigurationDelegate;
 
 public class PHPLaunchConfigurationDelegate implements ILaunchConfigurationDelegate {
        protected static final InterpreterRunner interpreterRunner = new InterpreterRunner();
-//     protected static final DebuggerRunner debuggerRunner = new DebuggerRunner();
+       protected static final DebuggerRunner debuggerRunner = new DebuggerRunner();
 
        public PHPLaunchConfigurationDelegate() {
                super();
@@ -23,10 +34,11 @@ public class PHPLaunchConfigurationDelegate implements ILaunchConfigurationDeleg
        public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException {
                if (PHPRuntime.getDefault().getSelectedInterpreter() == null)
                        throw new CoreException(new Status(IStatus.ERROR, PHPLaunchingPlugin.PLUGIN_ID, IStatus.OK, "You must define an interpreter before running PHP.", null));
-//             if (mode.equals("debug")) {
-//                     debuggerRunner.run(new InterpreterRunnerConfiguration(configuration), launch);
-//             } else {
-                       interpreterRunner.run(new InterpreterRunnerConfiguration(configuration), launch);
-//             }               
+
+               if (mode.equals("debug")) {
+                       debuggerRunner.run(new InterpreterRunnerConfiguration(configuration), launch);
+               } else {
+                       interpreterRunner.run(new InterpreterRunnerConfiguration(configuration), launch, null);
+               }               
        }
 }