GEF v2.0

org.eclipse.gef.ui.stackview
Class TreeContentProvider

java.lang.Object
  |
  +--org.eclipse.gef.ui.stackview.TreeContentProvider
All Implemented Interfaces:
CommandStackListener, IContentProvider, IStructuredContentProvider, ITreeContentProvider

public class TreeContentProvider
extends Object
implements ITreeContentProvider, CommandStackListener


Fields inherited from interface org.eclipse.gef.commands.CommandStackListener
copyright
 
Constructor Summary
TreeContentProvider(CommandStack stack)
           
 
Method Summary
 void commandStackChanged(EventObject event)
          This is called with the CommandStack's state has changed.
 void dispose()
           
 Object[] getChildren(Object o)
           
 Object[] getElements(Object o)
           
 Object getParent(Object child)
           
 boolean hasChildren(Object o)
           
 void inputChanged(Viewer v, Object o, Object n)
           
 boolean isDeleted(Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeContentProvider

public TreeContentProvider(CommandStack stack)
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface IContentProvider

commandStackChanged

public void commandStackChanged(EventObject event)
Description copied from interface: CommandStackListener
This is called with the CommandStack's state has changed.
Specified by:
commandStackChanged in interface CommandStackListener

getChildren

public Object[] getChildren(Object o)
Specified by:
getChildren in interface ITreeContentProvider

getElements

public Object[] getElements(Object o)
Specified by:
getElements in interface IStructuredContentProvider

getParent

public Object getParent(Object child)
Specified by:
getParent in interface ITreeContentProvider

hasChildren

public boolean hasChildren(Object o)
Specified by:
hasChildren in interface ITreeContentProvider

isDeleted

public boolean isDeleted(Object o)

inputChanged

public void inputChanged(Viewer v,
                         Object o,
                         Object n)
Specified by:
inputChanged in interface IContentProvider

GEF v2.0