RSE
Release 1.0

org.eclipse.rse.ui.view.team
Class SystemTeamViewInputProvider

java.lang.Object
  extended byorg.eclipse.rse.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.


Constructor Summary
SystemTeamViewInputProvider()
          Constructor for SystemTeamViewInputProvider.
 
Method Summary
 Object getAdapter(Class adapterType)
          This is the method required by the IAdaptable interface.
 Object[] getConnectionChildren(IHost 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()
           
 Object[] getSystemViewRoots()
           
 Viewer getViewer()
           
 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 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()
           
 boolean showActions()
           
 boolean showButtonBar()
           
 boolean showingConnections()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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()
Specified by:
getSystemViewRoots in interface ISystemViewInputProvider
Returns:
the children objects to consistute the root elements in the system view tree

hasSystemViewRoots

public boolean hasSystemViewRoots()
Specified by:
hasSystemViewRoots in interface ISystemViewInputProvider
Returns:
true if ISystemViewInputProvider.getSystemViewRoots() will return a non-empty list

showingConnections

public boolean showingConnections()
Specified by:
showingConnections in interface ISystemViewInputProvider
Returns:
true if we are listing connections or not, so we know whether we are interested in connection-add events

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.

Specified by:
getConnectionChildren in interface ISystemViewInputProvider
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.

Specified by:
hasConnectionChildren in interface ISystemViewInputProvider
Parameters:
selectedConnection - the connection being shown in the viewer
Returns:
true if this connection has children to be shown.

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
Parameters:
shell - the shell being used by the viewer using this provider

getShell

public Shell getShell()
Specified by:
getShell in interface ISystemViewInputProvider
Returns:
the shell of the viewer we are currently associated with

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
Parameters:
viewer - the viewer that uses this provider

getViewer

public Viewer getViewer()
Specified by:
getViewer in interface ISystemViewInputProvider
Returns:
the viewer we are currently associated with

showActionBar

public boolean showActionBar()
Specified by:
showActionBar in interface ISystemViewInputProvider
Returns:
true to show the action bar (ie, toolbar) above the viewer. The action bar contains connection actions, predominantly.

showButtonBar

public boolean showButtonBar()
Specified by:
showButtonBar in interface ISystemViewInputProvider
Returns:
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.

showActions

public boolean showActions()
Specified by:
showActions in interface ISystemViewInputProvider
Returns:
true to show right-click popup actions on objects in the tree.

RSE
Release 1.0

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