|
RSE Release 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.rse.ui.view.SystemAbstractAPIProvider
public abstract class SystemAbstractAPIProvider
This is a base class that a provider of root nodes to the remote systems tree viewer part can use as a parent class. This class existed in RSE 1.0, was made "internal" for RSE 2.0 and restored as API for RSE 3.0.
Field Summary | |
---|---|
protected SystemMessageObject |
cancelledObject
Deprecated. don't use this field |
protected Object[] |
emptyList
Deprecated. don't use this field |
protected SystemMessageObject |
errorObject
Deprecated. don't use this field |
protected Object[] |
msgList
Deprecated. don't use this field |
protected SystemMessageObject |
nullObject
Deprecated. Use checkForEmptyList(Object[], Object, boolean) instead. |
protected ISystemRegistry |
sr
Deprecated. don't use this field |
protected Viewer |
viewer
|
Constructor Summary | |
---|---|
SystemAbstractAPIProvider()
Constructor |
Method Summary | |
---|---|
protected Object[] |
checkForEmptyList(Object[] children,
Object parent,
boolean returnNullMsg)
In getChildren, return checkForEmptyList(children, parent, true/false) versus your array directly. |
protected Object[] |
checkForNull(Object[] children,
boolean returnNullMsg)
Deprecated. Use checkForEmptyList(Object[], Object, boolean) instead. |
Object |
getAdapter(Class adapterType)
This is the method required by the IAdaptable interface. |
protected Object[] |
getCancelledMessageObject()
Return the "Operation cancelled by user" msg as an object array so can be used to answer getChildren() |
protected Object[] |
getFailedMessageObject()
Return the "Operation failed" msg as an object array so can be used to answer getChildren() |
protected ISystemRemoteElementAdapter |
getRemoteAdapter(Object o)
Returns the implementation of ISystemRemoteElement for the given object. |
protected ISystemViewElementAdapter |
getViewAdapter(Object o)
Returns the implementation of ISystemViewElement for the given object. |
Object |
getViewer()
Return the viewer we are currently associated with |
protected void |
initMsgObjects()
|
void |
setViewer(Object viewer)
Set the viewer in case it is needed for anything. |
boolean |
showingConnections()
Return true if we are listing connections or not, so we know whether we are interested in connection-add events |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.rse.core.model.ISystemViewInputProvider |
---|
getConnectionChildren, getSystemViewRoots, hasConnectionChildren, hasSystemViewRoots |
Field Detail |
---|
protected Viewer viewer
protected ISystemRegistry sr
protected Object[] emptyList
protected Object[] msgList
protected SystemMessageObject nullObject
checkForEmptyList(Object[], Object, boolean)
instead.protected SystemMessageObject cancelledObject
protected SystemMessageObject errorObject
Constructor Detail |
---|
public SystemAbstractAPIProvider()
Method Detail |
---|
public Object getAdapter(Class adapterType)
getAdapter
in interface IAdaptable
getAdapter
in interface ISystemViewInputProvider
public void setViewer(Object viewer)
ISystemViewInputProvider
setViewer
in interface ISystemViewInputProvider
viewer
- the viewer
that uses this providerpublic Object getViewer()
ISystemViewInputProvider
getViewer
in interface ISystemViewInputProvider
viewer
we are currently associated withprotected final void initMsgObjects()
protected Object[] checkForEmptyList(Object[] children, Object parent, boolean returnNullMsg)
Callable by subclasses. Do not override.
children
- The list of children.parent
- The parent for the children.returnNullMsg
- true
if an "Empty List" message should
be returned.
protected Object[] checkForNull(Object[] children, boolean returnNullMsg)
checkForEmptyList(Object[], Object, boolean)
instead.
protected Object[] getCancelledMessageObject()
protected Object[] getFailedMessageObject()
public boolean showingConnections()
showingConnections
in interface ISystemViewInputProvider
protected ISystemViewElementAdapter getViewAdapter(Object o)
protected ISystemRemoteElementAdapter getRemoteAdapter(Object o)
|
RSE Release 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |