A massive organize imports and formatting of the sources using default Eclipse code...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / ui / PHPUIStatus.java
index 4fcf12a..bdb4b78 100644 (file)
@@ -14,39 +14,45 @@ import org.eclipse.core.runtime.Status;
  */
 public class PHPUIStatus extends Status {
 
-  public PHPUIStatus(int code) {
-    this(code, ""); //$NON-NLS-1$
-  }
-
-  private PHPUIStatus(int severity, int code, String message, Throwable throwable) {
-    super(severity, PHPeclipsePlugin.getPluginId(), code, message, throwable);
-  }
-
-  public PHPUIStatus(int code, String message) {
-    this(code, message, null);
-  }
-
-  public PHPUIStatus(int code, String message, Throwable throwable) {
-    super(IStatus.ERROR, PHPeclipsePlugin.getPluginId(), code, message, throwable);
-  }
-  
-  public static IStatus createError(int code, Throwable throwable) {
-       String message= throwable.getMessage();
-       if (message == null) {
-               message= throwable.getClass().getName();
-       }
-       return new PHPUIStatus(IStatus.ERROR, code, message, throwable);
-  }
-  
-  public static IStatus createError(int code, String message, Throwable throwable) {
-    return new PHPUIStatus(IStatus.ERROR, code, message, throwable);
-  }
-
-  public static IStatus createInfo(int code, String message, Throwable throwable) {
-    return new PHPUIStatus(IStatus.INFO, code, message, throwable);
-  }
-
-  public static IStatus createWarning(int code, String message, Throwable throwable) {
-    return new PHPUIStatus(IStatus.WARNING, code, message, throwable);
-  }
+       public PHPUIStatus(int code) {
+               this(code, ""); //$NON-NLS-1$
+       }
+
+       private PHPUIStatus(int severity, int code, String message,
+                       Throwable throwable) {
+               super(severity, PHPeclipsePlugin.getPluginId(), code, message,
+                               throwable);
+       }
+
+       public PHPUIStatus(int code, String message) {
+               this(code, message, null);
+       }
+
+       public PHPUIStatus(int code, String message, Throwable throwable) {
+               super(IStatus.ERROR, PHPeclipsePlugin.getPluginId(), code, message,
+                               throwable);
+       }
+
+       public static IStatus createError(int code, Throwable throwable) {
+               String message = throwable.getMessage();
+               if (message == null) {
+                       message = throwable.getClass().getName();
+               }
+               return new PHPUIStatus(IStatus.ERROR, code, message, throwable);
+       }
+
+       public static IStatus createError(int code, String message,
+                       Throwable throwable) {
+               return new PHPUIStatus(IStatus.ERROR, code, message, throwable);
+       }
+
+       public static IStatus createInfo(int code, String message,
+                       Throwable throwable) {
+               return new PHPUIStatus(IStatus.INFO, code, message, throwable);
+       }
+
+       public static IStatus createWarning(int code, String message,
+                       Throwable throwable) {
+               return new PHPUIStatus(IStatus.WARNING, code, message, throwable);
+       }
 }