Refactory: remove unused classes, imports, fields and methods.
[phpeclipse.git] / net.sourceforge.phpeclipse.externaltools / src / net / sourceforge / phpdt / externaltools / internal / ui / StatusInfo.java
index 418cef8..177faba 100644 (file)
@@ -1,25 +1,27 @@
 package net.sourceforge.phpdt.externaltools.internal.ui;
 
 /**********************************************************************
-Copyright (c) 2000, 2002 IBM Corp.  All rights reserved.
-This file is 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
-**********************************************************************/
+ Copyright (c) 2000, 2002 IBM Corp.  All rights reserved.
+ This file is 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
+ **********************************************************************/
 
 import net.sourceforge.phpdt.externaltools.model.IExternalToolConstants;
 
 import org.eclipse.core.runtime.IStatus;
-import org.eclipse.jface.util.Assert;
+//incastrix
+//import org.eclipse.jface.text.Assert;
+import org.eclipse.core.runtime.Assert;
 
 /**
- * A settable IStatus.
- * Can be an error, warning, info or ok. For error, info and warning states,
- * a message describes the problem.
+ * A settable IStatus. Can be an error, warning, info or ok. For error, info and
+ * warning states, a message describes the problem.
  */
 public class StatusInfo implements IStatus {
 
        private String fStatusMessage;
+
        private int fSeverity;
 
        /**
@@ -31,42 +33,45 @@ public class StatusInfo implements IStatus {
 
        /**
         * Creates a status .
-        * @param severity The status severity: ERROR, WARNING, INFO and OK.
-        * @param message The message of the status. Applies only for ERROR,
-        * WARNING and INFO.
+        * 
+        * @param severity
+        *            The status severity: ERROR, WARNING, INFO and OK.
+        * @param message
+        *            The message of the status. Applies only for ERROR, WARNING and
+        *            INFO.
         */
        public StatusInfo(int severity, String message) {
-               fStatusMessage= message;
-               fSeverity= severity;
+               fStatusMessage = message;
+               fSeverity = severity;
        }
 
        /**
-        *  Returns if the status' severity is OK.
+        * Returns if the status' severity is OK.
         */
        public boolean isOK() {
                return fSeverity == IStatus.OK;
        }
 
        /**
-        *  Returns if the status' severity is WARNING.
+        * Returns if the status' severity is WARNING.
         */
-       public boolean isWarning() {
-               return fSeverity == IStatus.WARNING;
-       }
+//     public boolean isWarning() {
+//             return fSeverity == IStatus.WARNING;
+//     }
 
        /**
-        *  Returns if the status' severity is INFO.
+        * Returns if the status' severity is INFO.
         */
-       public boolean isInfo() {
-               return fSeverity == IStatus.INFO;
-       }
+//     public boolean isInfo() {
+//             return fSeverity == IStatus.INFO;
+//     }
 
        /**
-        *  Returns if the status' severity is ERROR.
+        * Returns if the status' severity is ERROR.
         */
-       public boolean isError() {
-               return fSeverity == IStatus.ERROR;
-       }
+//     public boolean isError() {
+//             return fSeverity == IStatus.ERROR;
+//     }
 
        /**
         * @see IStatus#getMessage
@@ -77,41 +82,47 @@ public class StatusInfo implements IStatus {
 
        /**
         * Sets the status to ERROR.
-        * @param The error message (can be empty, but not null)
+        * 
+        * @param The
+        *            error message (can be empty, but not null)
         */
        public void setError(String errorMessage) {
                Assert.isNotNull(errorMessage);
-               fStatusMessage= errorMessage;
-               fSeverity= IStatus.ERROR;
+               fStatusMessage = errorMessage;
+               fSeverity = IStatus.ERROR;
        }
 
        /**
         * Sets the status to WARNING.
-        * @param The warning message (can be empty, but not null)
+        * 
+        * @param The
+        *            warning message (can be empty, but not null)
         */
-       public void setWarning(String warningMessage) {
-               Assert.isNotNull(warningMessage);
-               fStatusMessage= warningMessage;
-               fSeverity= IStatus.WARNING;
-       }
+//     public void setWarning(String warningMessage) {
+//             Assert.isNotNull(warningMessage);
+//             fStatusMessage = warningMessage;
+//             fSeverity = IStatus.WARNING;
+//     }
 
        /**
         * Sets the status to INFO.
-        * @param The info message (can be empty, but not null)
+        * 
+        * @param The
+        *            info message (can be empty, but not null)
         */
-       public void setInfo(String infoMessage) {
-               Assert.isNotNull(infoMessage);
-               fStatusMessage= infoMessage;
-               fSeverity= IStatus.INFO;
-       }
+//     public void setInfo(String infoMessage) {
+//             Assert.isNotNull(infoMessage);
+//             fStatusMessage = infoMessage;
+//             fSeverity = IStatus.INFO;
+//     }
 
        /**
         * Sets the status to OK.
         */
-       public void setOK() {
-               fStatusMessage= null;
-               fSeverity= IStatus.OK;
-       }
+//     public void setOK() {
+//             fStatusMessage = null;
+//             fSeverity = IStatus.OK;
+//     }
 
        /*
         * @see IStatus#matches(int)
@@ -122,6 +133,7 @@ public class StatusInfo implements IStatus {
 
        /**
         * Returns always <code>false</code>.
+        * 
         * @see IStatus#isMultiStatus()
         */
        public boolean isMultiStatus() {
@@ -144,6 +156,7 @@ public class StatusInfo implements IStatus {
 
        /**
         * Returns always <code>null</code>.
+        * 
         * @see IStatus#getException()
         */
        public Throwable getException() {
@@ -152,6 +165,7 @@ public class StatusInfo implements IStatus {
 
        /**
         * Returns always the error severity.
+        * 
         * @see IStatus#getCode()
         */
        public int getCode() {
@@ -160,6 +174,7 @@ public class StatusInfo implements IStatus {
 
        /**
         * Returns always <code>null</code>.
+        * 
         * @see IStatus#getChildren()
         */
        public IStatus[] getChildren() {