public class SerializableMultiStatus extends SerializableStatus
CANCEL_STATUS, OK_STATUS
Constructor and Description |
---|
SerializableMultiStatus(org.eclipse.core.runtime.IStatus status) |
SerializableMultiStatus(org.eclipse.core.runtime.MultiStatus multiStatus) |
SerializableMultiStatus(java.lang.String pluginId,
int code,
org.eclipse.core.runtime.IStatus[] newChildren,
java.lang.String message,
java.lang.Throwable exception) |
SerializableMultiStatus(java.lang.String pluginId,
int code,
java.lang.String message,
java.lang.Throwable exception) |
Modifier and Type | Method and Description |
---|---|
void |
add(SerializableStatus status)
Adds the given status to this multi-status.
|
void |
addAll(SerializableStatus status)
Adds all of the children of the given status to this multi-status.
|
org.eclipse.core.runtime.IStatus[] |
getChildren() |
boolean |
isMultiStatus() |
void |
merge(SerializableStatus status)
Merges the given status into this multi-status.
|
java.lang.String |
toString()
Returns a string representation of the status, suitable for debugging
purposes only.
|
getCode, getException, getMessage, getPlugin, getSeverity, isOK, matches, setCode, setException, setMessage, setPlugin, setSeverity
public SerializableMultiStatus(org.eclipse.core.runtime.IStatus status)
public SerializableMultiStatus(org.eclipse.core.runtime.MultiStatus multiStatus)
public SerializableMultiStatus(java.lang.String pluginId, int code, org.eclipse.core.runtime.IStatus[] newChildren, java.lang.String message, java.lang.Throwable exception)
public SerializableMultiStatus(java.lang.String pluginId, int code, java.lang.String message, java.lang.Throwable exception)
public void add(SerializableStatus status)
status
- the new child statuspublic void addAll(SerializableStatus status)
status
- the status whose children are to be added to this onepublic org.eclipse.core.runtime.IStatus[] getChildren()
getChildren
in interface org.eclipse.core.runtime.IStatus
getChildren
in class SerializableStatus
public boolean isMultiStatus()
isMultiStatus
in interface org.eclipse.core.runtime.IStatus
isMultiStatus
in class SerializableStatus
public void merge(SerializableStatus status)
add(status)
if the given status is not a multi-status.
Equivalent to addAll(status)
if the given status is a
multi-status.status
- the status to merge into this oneadd(SerializableStatus)
,
addAll(SerializableStatus)
public java.lang.String toString()
toString
in class SerializableStatus