Remote Systems
v6.4.1

com.ibm.etools.systems.core.ui.view.team
Class SystemTeamViewInputProvider

java.lang.Object
  extended bycom.ibm.etools.systems.core.ui.view.team.SystemTeamViewInputProvider
All Implemented Interfaces:
IAdaptable, ISystemViewInputProvider

public class SystemTeamViewInputProvider
extends Object
implements IAdaptable, ISystemViewInputProvider

Represents the input to the team viewer. For now, this really doesn't do much since we always list the same thing.


Field Summary
static String Copyright
           
 
Fields inherited from interface com.ibm.etools.systems.core.ui.view.ISystemViewInputProvider
copyright
 
Constructor Summary
SystemTeamViewInputProvider()
          Constructor for SystemTeamViewInputProvider.
 
Method Summary
 Object getAdapter(Class adapterType)
          This is the method required by the IAdaptable interface.
 Object[] getConnectionChildren(SystemConnection selectedConnection)
          This method is called by the connection adapter when the user expands a connection.
 Object[] getRoots()
          Return the roots to display in the team viewer.
 Shell getShell()
          Return the shell of the viewer we are currently associated with
 Object[] getSystemViewRoots()
          Return the children objects to consistute the root elements in the system view tree
 Viewer getViewer()
          Return the viewer we are currently associated with
 boolean hasConnectionChildren(SystemConnection selectedConnection)
          This method is called by the connection adapter when deciding to show a plus-sign or not beside a connection.
 boolean hasSystemViewRoots()
          Return true if getSystemViewRoots() will return a non-empty list
 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
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
Constructor Detail

SystemTeamViewInputProvider

public SystemTeamViewInputProvider()
Constructor for SystemTeamViewInputProvider.

Method Detail

getRoots

public Object[] getRoots()
Return the roots to display in the team viewer. This is simply the RSE singleton project


getAdapter

public Object getAdapter(Class adapterType)
This is the method required by the IAdaptable interface. Given an adapter class type, return an object castable to the type, or null if this is not possible.

Specified by:
getAdapter in interface IAdaptable

getSystemViewRoots

public Object[] getSystemViewRoots()
Description copied from interface: ISystemViewInputProvider
Return the children objects to consistute the root elements in the system view tree

Specified by:
getSystemViewRoots in interface ISystemViewInputProvider

hasSystemViewRoots

public boolean hasSystemViewRoots()
Description copied from interface: ISystemViewInputProvider
Return true if ISystemViewInputProvider.getSystemViewRoots() will return a non-empty list

Specified by:
hasSystemViewRoots in interface ISystemViewInputProvider

showingConnections

public boolean showingConnections()
Description copied from interface: ISystemViewInputProvider
Return true if we are listing connections or not, so we know whether we are interested in connection-add events

Specified by:
showingConnections in interface ISystemViewInputProvider

getConnectionChildren

public Object[] getConnectionChildren(SystemConnection 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.

Specified by:
getConnectionChildren in interface ISystemViewInputProvider

hasConnectionChildren

public boolean hasConnectionChildren(SystemConnection 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. Return true if this connection has children to be shown.

Specified by:
hasConnectionChildren in interface ISystemViewInputProvider

setShell

public void setShell(Shell shell)
Description copied from interface: ISystemViewInputProvider
Set the shell in case it is needed for anything. The label and content provider will call this.

Specified by:
setShell in interface ISystemViewInputProvider

getShell

public Shell getShell()
Description copied from interface: ISystemViewInputProvider
Return the shell of the viewer we are currently associated with

Specified by:
getShell in interface ISystemViewInputProvider

setViewer

public void setViewer(Viewer viewer)
Description copied from interface: ISystemViewInputProvider
Set the viewer in case it is needed for anything. The label and content provider will call this.

Specified by:
setViewer in interface ISystemViewInputProvider

getViewer

public Viewer getViewer()
Description copied from interface: ISystemViewInputProvider
Return the viewer we are currently associated with

Specified by:
getViewer in interface ISystemViewInputProvider

showActionBar

public boolean showActionBar()
Description copied from interface: ISystemViewInputProvider
Return true to show the action bar (ie, toolbar) above the viewer. The action bar contains connection actions, predominantly.

Specified by:
showActionBar in interface ISystemViewInputProvider

showButtonBar

public boolean showButtonBar()
Description copied from interface: ISystemViewInputProvider
Return true to show the button bar above the viewer. The tool bar contains "Get List" and "Refresh" buttons and is typicall shown in dialogs that list only remote system objects.

Specified by:
showButtonBar in interface ISystemViewInputProvider

showActions

public boolean showActions()
Description copied from interface: ISystemViewInputProvider
Return true to show right-click popup actions on objects in the tree.

Specified by:
showActions in interface ISystemViewInputProvider

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.