Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.core.model
Class SystemMessageObject

java.lang.Object
  extended by 
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.


Field Summary
protected   String message
           
protected   Object parent
           
protected  int type
           
 
Fields inherited from interface org.eclipse.rse.core.model. ISystemMessageObject
MSGTYPE_CANCEL, MSGTYPE_EMPTY, MSGTYPE_ERROR, MSGTYPE_INFO, MSGTYPE_OBJECTCREATED
 
Constructor Summary
SystemMessageObject ( SystemMessage msgObj, int type, Object parent)
          Constructor when using SystemMessage
 
Method Summary
 int compareTo ( Object o)
           
  Object getAdapter ( Class adapterType)
          This is the method required by the IAdaptable interface.
  String getMessage ()
          Get the message to display in the tree viewer
  Object getParent ()
          Get the parent object (within tree view)
  SystemMessage getSystemMessage ()
          Return the SystemMessage for this SystemMessageObject.
 int getType ()
          Message type.
 boolean isTransient ()
          isTransient determines if the message should be removed from the tree when the parent item in the tree is collapsed.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

message

protected 
String message

type

protected int type

parent

protected 
Object parent
Constructor Detail

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
Method Detail

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)

RSE
Release 3.0

Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire