RSE
Release 1.0

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

java.lang.Object
  extended byorg.eclipse.ui.model.BaseWorkbenchContentProvider
      extended byorg.eclipse.ui.model.WorkbenchContentProvider
          extended byorg.eclipse.rse.ui.view.team.SystemTeamViewContentProvider
All Implemented Interfaces:
EventListener, IContentProvider, IResourceChangeListener, IStructuredContentProvider, ITreeContentProvider

public class SystemTeamViewContentProvider
extends WorkbenchContentProvider

Content provider for the RSE's Team view part.


Constructor Summary
SystemTeamViewContentProvider()
          Constructor
 
Method Summary
 void dispose()
          View is going away: dispose of any local resources
 Object[] getChildren(Object element)
          Return the children of the given node, when it is expanded
 Object[] getElements(Object element)
          Return the roots elements to display in the tree initially.
 Object getParent(Object element)
          Return the parent of the given node
protected  ISystemViewElementAdapter getSystemViewAdapter(Object o)
          Returns the implementation of ISystemViewElement for the given object.
 boolean hasChildren(Object element)
          Return true if given element has children.
 void inputChanged(Viewer viewer, Object oldInput, Object newInput)
          This hooks this content provider as an IResourceChangeListener.
 
Methods inherited from class org.eclipse.ui.model.WorkbenchContentProvider
processDelta, resourceChanged
 
Methods inherited from class org.eclipse.ui.model.BaseWorkbenchContentProvider
getAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemTeamViewContentProvider

public SystemTeamViewContentProvider()
Constructor

Method Detail

getChildren

public Object[] getChildren(Object element)
Return the children of the given node, when it is expanded


getParent

public Object getParent(Object element)
Return the parent of the given node


hasChildren

public boolean hasChildren(Object element)
Return true if given element has children.


getElements

public Object[] getElements(Object element)
Return the roots elements to display in the tree initially. For us, this is the RSE singleton project.


dispose

public void dispose()
View is going away: dispose of any local resources


inputChanged

public void inputChanged(Viewer viewer,
                         Object oldInput,
                         Object newInput)
This hooks this content provider as an IResourceChangeListener.
We will not use parent code.

See Also:
IContentProvider#inputChanged(Viewer, Object, Object)

getSystemViewAdapter

protected ISystemViewElementAdapter getSystemViewAdapter(Object o)
Returns the implementation of ISystemViewElement for the given object. Returns null if the adapter is not defined or the object is not adaptable.


RSE
Release 1.0

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