org.eclipse.rse.ui.view
Class SystemResourceSelectionInputProvider
java.lang.Object
org.eclipse.rse.ui.view.SystemAbstractAPIProvider
org.eclipse.rse.ui.view.SystemResourceSelectionInputProvider
- All Implemented Interfaces:
- IAdaptable, ISystemViewInputProvider
- Direct Known Subclasses:
- SystemRemoteFileSelectionInputProvider
- public abstract class SystemResourceSelectionInputProvider
- extends SystemAbstractAPIProvider
| Methods inherited from class org.eclipse.rse.ui.view.SystemAbstractAPIProvider |
checkForNull, getAdapter, getAdapter, getCancelledMessageObject, getFailedMessageObject, getRemoteAdapter, getShell, getViewer, setShell, setViewer, showActionBar, showActions, showButtonBar, showingConnections |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemResourceSelectionInputProvider
public SystemResourceSelectionInputProvider(IHost connection)
SystemResourceSelectionInputProvider
public SystemResourceSelectionInputProvider()
getSystemConnection
public IHost getSystemConnection()
allowMultipleConnections
public boolean allowMultipleConnections()
setAllowNewConnection
public void setAllowNewConnection(boolean flag)
allowNewConnection
public boolean allowNewConnection()
setSystemConnection
public void setSystemConnection(IHost connection,
boolean onlyConnection)
getSystemTypes
public String[] getSystemTypes()
setSystemTypes
public void setSystemTypes(String[] types)
getSystemViewRoots
public Object[] getSystemViewRoots()
- Returns:
- the children objects to consistute the root elements in the system view tree
hasSystemViewRoots
public boolean hasSystemViewRoots()
- Returns:
- true if
ISystemViewInputProvider.getSystemViewRoots() will return a non-empty list
getConnectionChildren
public Object[] getConnectionChildren(IHost selectedConnection)
- Description copied from interface:
ISystemViewInputProvider
- 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
public boolean hasConnectionChildren(IHost selectedConnection)
- Description copied from interface:
ISystemViewInputProvider
- 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.
getSubSystem
protected abstract ISubSystem getSubSystem(IHost selectedConnection)
setCategory
public void setCategory(String category)
getCategory
public String getCategory()
Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.