|
RSE Release 3.2 |
|||||||||
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 java.lang.Object[] |
emptyList
Deprecated. don't use this field |
protected SystemMessageObject |
errorObject
Deprecated. don't use this field |
protected java.lang.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 java.lang.Object[] |
checkForEmptyList(java.lang.Object[] children,
java.lang.Object parent,
boolean returnNullMsg)
In getChildren, return checkForEmptyList(children, parent, true/false) versus your array directly. |
protected java.lang.Object[] |
checkForNull(java.lang.Object[] children,
boolean returnNullMsg)
Deprecated. Use checkForEmptyList(Object[], Object, boolean) instead. |
java.lang.Object |
getAdapter(java.lang.Class adapterType)
This is the method required by the IAdaptable interface. |
protected java.lang.Object[] |
getCancelledMessageObject()
Return the "Operation cancelled by user" msg as an object array so can be used to answer getChildren() |
protected java.lang.Object[] |
getFailedMessageObject()
Return the "Operation failed" msg as an object array so can be used to answer getChildren() |
protected ISystemRemoteElementAdapter |
getRemoteAdapter(java.lang.Object o)
Returns the implementation of ISystemRemoteElement for the given object. |
protected ISystemViewElementAdapter |
getViewAdapter(java.lang.Object o)
Returns the implementation of ISystemViewElement for the given object. |
java.lang.Object |
getViewer()
Return the viewer we are currently associated with |
protected void |
initMsgObjects()
|
void |
setViewer(java.lang.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 java.lang.Object[] emptyList
protected java.lang.Object[] msgList
protected SystemMessageObject nullObject
checkForEmptyList(Object[], Object, boolean)
instead.protected SystemMessageObject cancelledObject
protected SystemMessageObject errorObject
Constructor Detail |
---|
public SystemAbstractAPIProvider()
Method Detail |
---|
public java.lang.Object getAdapter(java.lang.Class adapterType)
getAdapter
in interface IAdaptable
getAdapter
in interface ISystemViewInputProvider
public void setViewer(java.lang.Object viewer)
ISystemViewInputProvider
setViewer
in interface ISystemViewInputProvider
viewer
- the viewer
that uses this providerpublic java.lang.Object getViewer()
ISystemViewInputProvider
getViewer
in interface ISystemViewInputProvider
viewer
we are currently associated withprotected final void initMsgObjects()
protected java.lang.Object[] checkForEmptyList(java.lang.Object[] children, java.lang.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 java.lang.Object[] checkForNull(java.lang.Object[] children, boolean returnNullMsg)
checkForEmptyList(Object[], Object, boolean)
instead.
protected java.lang.Object[] getCancelledMessageObject()
protected java.lang.Object[] getFailedMessageObject()
public boolean showingConnections()
showingConnections
in interface ISystemViewInputProvider
protected ISystemViewElementAdapter getViewAdapter(java.lang.Object o)
protected ISystemRemoteElementAdapter getRemoteAdapter(java.lang.Object o)
|
RSE Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |