|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.rse.ui.view.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.
| Field Summary | |
|---|---|
protected SystemMessageObject |
canceledObject
|
protected Object[] |
emptyList
|
protected SystemMessageObject |
errorObject
|
protected Object[] |
msgList
|
protected SystemMessageObject |
nullObject
|
protected Shell |
shell
|
protected ISystemRegistry |
sr
|
protected Viewer |
viewer
|
| Constructor Summary | |
|---|---|
SystemAbstractAPIProvider()
Constructor |
|
| Method Summary | |
|---|---|
protected Object[] |
checkForNull(Object[] children,
boolean returnNullMsg)
In getChildren, return checkForNull(children, true/false) vs your array directly. |
Object |
getAdapter(Class adapterType)
This is the method required by the IAdaptable interface. |
protected ISystemViewElementAdapter |
getAdapter(Object o)
Returns the implementation of ISystemViewElement for the given object. |
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. |
Shell |
getShell()
Return the shell of the current viewer |
Viewer |
getViewer()
Return the viewer we are currently associated with |
void |
setShell(Shell shell)
Set the shell in case it is needed for anything. |
void |
setViewer(Viewer viewer)
Set the viewer in case it is needed for anything. |
boolean |
showActionBar()
Return true to show the action bar (ie, toolbar) above the viewer. |
boolean |
showActions()
Return true to show right-click popup actions on objects in the tree. |
boolean |
showButtonBar()
Return true to show the button bar above the viewer. |
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.ui.view.ISystemViewInputProvider |
|---|
getConnectionChildren, getSystemViewRoots, hasConnectionChildren, hasSystemViewRoots |
| Field Detail |
protected Shell shell
protected Viewer viewer
protected ISystemRegistry sr
protected Object[] emptyList
protected Object[] msgList
protected SystemMessageObject nullObject
protected SystemMessageObject canceledObject
protected SystemMessageObject errorObject
| Constructor Detail |
public SystemAbstractAPIProvider()
| Method Detail |
public Object getAdapter(Class adapterType)
getAdapter in interface ISystemViewInputProviderpublic void setShell(Shell shell)
setShell in interface ISystemViewInputProvidershell - the shell being used by the viewer using this providerpublic Shell getShell()
getShell in interface ISystemViewInputProviderpublic void setViewer(Viewer viewer)
setViewer in interface ISystemViewInputProviderviewer - the viewer that uses this providerpublic Viewer getViewer()
getViewer in interface ISystemViewInputProviderpublic boolean showActionBar()
showActionBar in interface ISystemViewInputProviderpublic boolean showButtonBar()
showButtonBar in interface ISystemViewInputProviderpublic boolean showActions()
showActions in interface ISystemViewInputProvider
protected Object[] checkForNull(Object[] children,
boolean returnNullMsg)
protected Object[] getCancelledMessageObject()
protected Object[] getFailedMessageObject()
public boolean showingConnections()
showingConnections in interface ISystemViewInputProviderprotected ISystemViewElementAdapter getAdapter(Object o)
protected ISystemRemoteElementAdapter getRemoteAdapter(Object o)
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||