A massive organize imports and formatting of the sources using default Eclipse code...
[phpeclipse.git] / net.sourceforge.phpeclipse.debug.ui / src / net / sourceforge / phpdt / internal / debug / ui / launcher / ExecutionArguments.java
index 108e2fb..79311cd 100644 (file)
@@ -5,32 +5,45 @@ import org.eclipse.core.runtime.CoreException;
 import org.eclipse.core.runtime.QualifiedName;
 
 public class ExecutionArguments {
-       protected static final QualifiedName EXECUTION_ARGUMENTS_PROPERTY = new QualifiedName("net.sourceforge.phpdt", "executionArguments");
+       protected static final QualifiedName EXECUTION_ARGUMENTS_PROPERTY = new QualifiedName(
+                       "net.sourceforge.phpdt", "executionArguments");
+
        protected static final String ARGUMENT_SEPARATOR = "**<ArgBreak>**";
-       
+
        protected String interpreterArguments, phpFileArguments;
 
        public static ExecutionArguments getExecutionArguments(IFile phpScriptFile) {
                try {
-                       String executionArgumentsPersistableFormat = phpScriptFile.getPersistentProperty(EXECUTION_ARGUMENTS_PROPERTY);
+                       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()));
+
+                       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) {}
-               
+               } catch (CoreException e) {
+               }
+
                return null;
        }
 
-       public static void setExecutionArguments(IFile phpScriptFile, ExecutionArguments arguments) {
+       public static void setExecutionArguments(IFile phpScriptFile,
+                       ExecutionArguments arguments) {
                try {
-                       phpScriptFile.setPersistentProperty(EXECUTION_ARGUMENTS_PROPERTY, arguments.toPersistableFormat());
-               } catch (CoreException e) {}
+                       phpScriptFile.setPersistentProperty(EXECUTION_ARGUMENTS_PROPERTY,
+                                       arguments.toPersistableFormat());
+               } catch (CoreException e) {
+               }
        }
 
        public void setInterpreterArguments(String theArguments) {