org.eclipse.rse.core.model
Interface ISystemViewInputProvider
-
All Superinterfaces:
-
IAdaptable
-
All Known Subinterfaces:
-
ISystemFileAPIProvider,
ISystemRegistry,
ISystemResourceSelectionInputProvider,
ISystemSelectRemoteObjectAPIProvider
-
All Known Implementing Classes:
-
SystemAbstractAPIProvider
-
public interface ISystemViewInputProvider
- extends
IAdaptable
Abstraction for any object that wishes to be a roots-provider for the SystemView tree viewer.
getSystemViewRoots
Object[] getSystemViewRoots()
- Return the child objects to constitute the root elements in the system view tree.
-
-
-
Returns:
- Array of root root elements for the system view tree
hasSystemViewRoots
boolean hasSystemViewRoots()
- Test if
getSystemViewRoots()
will return a non-empty list
-
-
-
Returns:
-
true
if root elements are available, or false
otherwise.
showingConnections
boolean showingConnections()
-
-
-
Returns:
- true if we are listing connections or not, so we know whether we are interested in
connection-add events
getConnectionChildren
Object[] getConnectionChildren(
IHost selectedConnection)
- This method is called by the connection adapter when the user expands
a connection. This method must return the child objects to show for that
connection.
-
-
-
Parameters:
-
selectedConnection
- the connection undergoing expansion
-
Returns:
- the list of objects under the connection
hasConnectionChildren
boolean hasConnectionChildren(
IHost selectedConnection)
- This method is called by the connection adapter when deciding to show a plus-sign
or not beside a connection.
-
-
-
Parameters:
-
selectedConnection
- the connection being shown in the viewer
-
Returns:
- true if this connection has children to be shown.
getAdapter
Object getAdapter(
Class adapterType)
-
-
Specified by:
-
getAdapter
in interface
IAdaptable
-
setViewer
void setViewer(
Object viewer)
- Set the viewer in case it is needed for anything.
The label and content provider will call this.
-
-
-
Parameters:
-
viewer
- the
viewer
that uses this provider
getViewer
Object getViewer()
-
Deprecated. use other methods for getting the active viewer.
- Return the viewer we are currently associated with
-
-
-
Returns:
- the
viewer
we are currently associated with
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.