Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StatusInfo.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StatusInfo.java38
1 files changed, 19 insertions, 19 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StatusInfo.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StatusInfo.java
index 11aa17932..ca7a1818d 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StatusInfo.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/StatusInfo.java
@@ -15,15 +15,15 @@ import org.eclipse.core.runtime.IStatus;
import org.eclipse.debug.internal.ui.DebugUIPlugin;
/**
- * A settable IStatus.
+ * 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;
-
+
/**
* Creates a status set to OK (no message)
*/
@@ -36,12 +36,12 @@ public class StatusInfo implements IStatus {
* @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;
- }
-
+ }
+
/**
* Returns if the status' severity is OK.
*/
@@ -52,25 +52,25 @@ public class StatusInfo implements IStatus {
/**
* Returns if the status' severity is WARNING.
- */
+ */
public boolean isWarning() {
return fSeverity == IStatus.WARNING;
}
/**
* Returns if the status' severity is INFO.
- */
+ */
public boolean isInfo() {
return fSeverity == IStatus.INFO;
- }
+ }
/**
* Returns if the status' severity is ERROR.
- */
+ */
public boolean isError() {
return fSeverity == IStatus.ERROR;
}
-
+
/**
* @see IStatus#getMessage
*/
@@ -78,11 +78,11 @@ public class StatusInfo implements IStatus {
public String getMessage() {
return fStatusMessage;
}
-
+
/**
* Sets the status to ERROR.
* @param The error message (can be empty, but not null)
- */
+ */
public void setError(String errorMessage) {
Assert.isNotNull(errorMessage);
fStatusMessage= errorMessage;
@@ -92,7 +92,7 @@ public class StatusInfo implements IStatus {
/**
* Sets the status to WARNING.
* @param The warning message (can be empty, but not null)
- */
+ */
public void setWarning(String warningMessage) {
Assert.isNotNull(warningMessage);
fStatusMessage= warningMessage;
@@ -102,21 +102,21 @@ public class StatusInfo implements IStatus {
/**
* Sets the status to INFO.
* @param The info message (can be empty, but not null)
- */
+ */
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;
}
-
+
/*
* @see IStatus#matches(int)
*/
@@ -175,6 +175,6 @@ public class StatusInfo implements IStatus {
@Override
public IStatus[] getChildren() {
return new IStatus[0];
- }
+ }
}

Back to the top