public final class CommandResult
extends java.lang.Object
IStatus
Constructor and Description |
---|
CommandResult(org.eclipse.core.runtime.IStatus status)
Constructs a new command result with the specified status and a default
return value.
|
CommandResult(org.eclipse.core.runtime.IStatus status,
java.lang.Object returnValue)
Constructs a new command result with the specified status and return
value.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getReturnValue()
Retrieves the value of the
returnValue instance variable. |
org.eclipse.core.runtime.IStatus |
getStatus()
Retrieves the value of the
status instance variable. |
public CommandResult(org.eclipse.core.runtime.IStatus status)
status
- The status for the new command result.public CommandResult(org.eclipse.core.runtime.IStatus status, java.lang.Object returnValue)
status
- The status for the new command result.returnValue
- The return value for the new command result.public java.lang.Object getReturnValue()
returnValue
instance variable.returnValue
instance variable.public org.eclipse.core.runtime.IStatus getStatus()
status
instance variable.status
instance variable.