|
|
|
|
org.eclipse.rse.core.model
Class SystemMessageObject
java.lang.Object
org.eclipse.rse.core.model.SystemMessageObject
-
All Implemented Interfaces:
-
Comparable,
IAdaptable,
ISystemMessageObject
-
public class SystemMessageObject
- extends
Object
- implements
ISystemMessageObject,
IAdaptable,
Comparable
This class captures a message we wish to display as child node in the tree view.
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
message
protected
String message
type
protected int type
parent
protected
Object parent
SystemMessageObject
public SystemMessageObject(
SystemMessage msgObj,
int type,
Object parent)
- Constructor when using SystemMessage
-
Parameters:
-
msgObj - The system message from which to retrieve text to show in the tree viewer -
type - The message severity, dictating the icon. -
parent - The parent node of this within the tree view -
See Also:
-
ISystemMessageObject
getMessage
public
String getMessage()
- Get the message to display in the tree viewer
-
-
Specified by:
-
getMessage
in interface
ISystemMessageObject
-
getType
public int getType()
- Message type.
-
-
Specified by:
-
getType
in interface
ISystemMessageObject
-
-
See Also:
-
ISystemMessageObject
getParent
public
Object getParent()
- Get the parent object (within tree view)
-
-
Specified by:
-
getParent
in interface
ISystemMessageObject
-
getAdapter
public
Object getAdapter(
Class adapterType)
- This is the method required by the IAdaptable interface.
Given an adapter class type, return an object castable to the type, or
null if this is not possible.
-
-
Specified by:
-
getAdapter
in interface
IAdaptable
-
isTransient
public boolean isTransient()
-
Description copied from interface:
ISystemMessageObject
- isTransient determines if the message should be removed from the
tree when the parent item in the tree is collapsed.
-
-
Specified by:
-
isTransient
in interface
ISystemMessageObject
-
-
Returns:
- true if the item should be removed, false if it should not
-
See Also:
-
ISystemMessageObject.isTransient()
getSystemMessage
public
SystemMessage getSystemMessage()
- Return the SystemMessage for this SystemMessageObject.
-
-
compareTo
public int compareTo(
Object o)
-
-
Specified by:
-
compareTo
in interface
Comparable
-
-
See Also:
-
Comparable.compareTo(java.lang.Object)
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.
|
|
|