X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/launcher/ExecutionArguments.java b/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/launcher/ExecutionArguments.java index 79311cd..1c2974f 100644 --- a/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/launcher/ExecutionArguments.java +++ b/net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/launcher/ExecutionArguments.java @@ -1,7 +1,7 @@ package net.sourceforge.phpdt.internal.debug.ui.launcher; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.runtime.CoreException; +//import org.eclipse.core.resources.IFile; +//import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.QualifiedName; public class ExecutionArguments { @@ -12,49 +12,49 @@ public class ExecutionArguments { protected String interpreterArguments, phpFileArguments; - public static ExecutionArguments getExecutionArguments(IFile phpScriptFile) { - try { - String executionArgumentsPersistableFormat = phpScriptFile - .getPersistentProperty(EXECUTION_ARGUMENTS_PROPERTY); - ExecutionArguments executionArguments = new ExecutionArguments(); - - if (executionArgumentsPersistableFormat != null) { - int argBreakIndex = executionArgumentsPersistableFormat - .indexOf(ARGUMENT_SEPARATOR); - executionArguments - .setInterpreterArguments(executionArgumentsPersistableFormat - .substring(0, argBreakIndex)); - executionArguments - .setPHPFileArguments(executionArgumentsPersistableFormat - .substring(argBreakIndex - + ARGUMENT_SEPARATOR.length())); - } - - return executionArguments; - } catch (CoreException e) { - } - - return null; - } - - public static void setExecutionArguments(IFile phpScriptFile, - ExecutionArguments arguments) { - try { - phpScriptFile.setPersistentProperty(EXECUTION_ARGUMENTS_PROPERTY, - arguments.toPersistableFormat()); - } catch (CoreException e) { - } - } - - public void setInterpreterArguments(String theArguments) { - interpreterArguments = theArguments; - } - - public void setPHPFileArguments(String theArguments) { - phpFileArguments = theArguments; - } - - public String toPersistableFormat() { - return interpreterArguments + ARGUMENT_SEPARATOR + phpFileArguments; - } +// public static ExecutionArguments getExecutionArguments(IFile phpScriptFile) { +// try { +// String executionArgumentsPersistableFormat = phpScriptFile +// .getPersistentProperty(EXECUTION_ARGUMENTS_PROPERTY); +// ExecutionArguments executionArguments = new ExecutionArguments(); +// +// if (executionArgumentsPersistableFormat != null) { +// int argBreakIndex = executionArgumentsPersistableFormat +// .indexOf(ARGUMENT_SEPARATOR); +// executionArguments +// .setInterpreterArguments(executionArgumentsPersistableFormat +// .substring(0, argBreakIndex)); +// executionArguments +// .setPHPFileArguments(executionArgumentsPersistableFormat +// .substring(argBreakIndex +// + ARGUMENT_SEPARATOR.length())); +// } +// +// return executionArguments; +// } catch (CoreException e) { +// } +// +// return null; +// } + +// public static void setExecutionArguments(IFile phpScriptFile, +// ExecutionArguments arguments) { +// try { +// phpScriptFile.setPersistentProperty(EXECUTION_ARGUMENTS_PROPERTY, +// arguments.toPersistableFormat()); +// } catch (CoreException e) { +// } +// } + +// public void setInterpreterArguments(String theArguments) { +// interpreterArguments = theArguments; +// } + +// public void setPHPFileArguments(String theArguments) { +// phpFileArguments = theArguments; +// } + +// public String toPersistableFormat() { +// return interpreterArguments + ARGUMENT_SEPARATOR + phpFileArguments; +// } } \ No newline at end of file