X-Git-Url: http://secure.phpeclipse.com
diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/dialogs/StatusInfo.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/dialogs/StatusInfo.java
index 6d52c5b..10c7efb 100644
--- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/dialogs/StatusInfo.java
+++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/dialogs/StatusInfo.java
@@ -6,13 +6,13 @@ import org.eclipse.core.runtime.IStatus;
import org.eclipse.jface.util.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;
/**
@@ -24,9 +24,12 @@ 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;
@@ -34,28 +37,28 @@ public class StatusInfo implements IStatus {
}
/**
- * 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;
}
/**
- * Returns if the status' severity is INFO.
+ * Returns if the status' severity is 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;
@@ -70,7 +73,9 @@ 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);
@@ -80,7 +85,9 @@ public class StatusInfo implements IStatus {
/**
* 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);
@@ -90,7 +97,9 @@ public class StatusInfo implements IStatus {
/**
* 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);
@@ -115,6 +124,7 @@ public class StatusInfo implements IStatus {
/**
* Returns always false
.
+ *
* @see IStatus#isMultiStatus()
*/
public boolean isMultiStatus() {
@@ -137,6 +147,7 @@ public class StatusInfo implements IStatus {
/**
* Returns always null
.
+ *
* @see IStatus#getException()
*/
public Throwable getException() {
@@ -145,6 +156,7 @@ public class StatusInfo implements IStatus {
/**
* Returns always the error severity.
+ *
* @see IStatus#getCode()
*/
public int getCode() {
@@ -153,6 +165,7 @@ public class StatusInfo implements IStatus {
/**
* Returns always null
.
+ *
* @see IStatus#getChildren()
*/
public IStatus[] getChildren() {