RSE
Release 1.0

org.eclipse.rse.ui.view
Class SystemResourceSelectionInputProvider

java.lang.Object
  extended byorg.eclipse.rse.ui.view.SystemAbstractAPIProvider
      extended byorg.eclipse.rse.ui.view.SystemResourceSelectionInputProvider
All Implemented Interfaces:
IAdaptable, ISystemViewInputProvider
Direct Known Subclasses:
SystemRemoteFileSelectionInputProvider

public abstract class SystemResourceSelectionInputProvider
extends SystemAbstractAPIProvider


Field Summary
 
Fields inherited from class org.eclipse.rse.ui.view.SystemAbstractAPIProvider
canceledObject, emptyList, errorObject, msgList, nullObject, shell, sr, viewer
 
Constructor Summary
SystemResourceSelectionInputProvider()
           
SystemResourceSelectionInputProvider(IHost connection)
           
 
Method Summary
 boolean allowMultipleConnections()
           
 boolean allowNewConnection()
           
 String getCategory()
           
 Object[] getConnectionChildren(IHost selectedConnection)
          This method is called by the connection adapter when the user expands a connection.
protected abstract  ISubSystem getSubSystem(IHost selectedConnection)
           
 IHost getSystemConnection()
           
 String[] getSystemTypes()
           
 Object[] getSystemViewRoots()
           
 boolean hasConnectionChildren(IHost selectedConnection)
          This method is called by the connection adapter when deciding to show a plus-sign or not beside a connection.
 boolean hasSystemViewRoots()
           
 void setAllowNewConnection(boolean flag)
           
 void setCategory(String category)
           
 void setSystemConnection(IHost connection, boolean onlyConnection)
           
 void setSystemTypes(String[] types)
           
 
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
 

Constructor Detail

SystemResourceSelectionInputProvider

public SystemResourceSelectionInputProvider(IHost connection)

SystemResourceSelectionInputProvider

public SystemResourceSelectionInputProvider()
Method Detail

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()

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.