public class TreeViewer extends AbstractEditPartViewer
Tree
.EditPartViewer.Conditional
constantSelection, focusPart, selection, selectionListeners
Constructor and Description |
---|
TreeViewer()
Constructs a TreeViewer with the default root editpart.
|
Modifier and Type | Method and Description |
---|---|
Control |
createControl(Composite parent)
Creates the default tree and sets it as the control.
|
EditPart |
findObjectAtExcluding(Point pt,
java.util.Collection exclude,
EditPartViewer.Conditional condition)
Returns
null or the EditPart at the specified
location, using the given exclusion set and conditional. |
protected void |
fireSelectionChanged()
Fires selection changed to the registered listeners at the time called.
|
protected void |
hookControl()
"Hooks up" a Control, i.e. sets it as the control for the
RootTreeEditPart, adds necessary listener for proper operation, etc.
|
void |
reveal(EditPart part)
Reveals the given EditPart if it is not visible.
|
protected void |
unhookControl()
Unhooks a control so that it can be reset.
|
addDragSourceListener, addDragSourceListener, addDropTargetListener, addDropTargetListener, addPropertyChangeListener, addSelectionChangedListener, appendSelection, deselect, deselectAll, findObjectAt, findObjectAtExcluding, flush, getContents, getContextMenu, getControl, getDelegatingDragAdapter, getDelegatingDropAdapter, getDragSource, getDropTarget, getEditDomain, getEditPartFactory, getEditPartRegistry, getFocusEditPart, getKeyHandler, getProperty, getResourceManager, getRootEditPart, getSelectedEditParts, getSelection, getSelectionManager, getVisualPartMap, handleDispose, hookDragSource, hookDropTarget, init, primGetSelectedEditParts, refreshDragSourceAdapter, refreshDropTargetAdapter, registerAccessibleEditPart, removeDragSourceListener, removeDragSourceListener, removeDropTargetListener, removeDropTargetListener, removePropertyChangeListener, removeSelectionChangedListener, select, setContents, setContents, setContextMenu, setControl, setCursor, setDragSource, setDropTarget, setEditDomain, setEditPartFactory, setFocus, setKeyHandler, setProperty, setRootEditPart, setRouteEventsToEditDomain, setSelection, setSelectionManager, unregisterAccessibleEditPart
public TreeViewer()
public Control createControl(Composite parent)
createControl
in interface EditPartViewer
createControl
in class AbstractEditPartViewer
parent
- The parent for the TreeEditPartViewer.createControl(Composite)
public EditPart findObjectAtExcluding(Point pt, java.util.Collection exclude, EditPartViewer.Conditional condition)
EditPartViewer
null
or the EditPart
at the specified
location, using the given exclusion set and conditional. This method
behaves similarly to EditPartViewer.findObjectAt(Point)
.pt
- The mouse locationexclude
- The set of EditParts to be excludedcondition
- the Conditional used to evaluate a potential hitnull
or an EditPartEditPartViewer.findObjectAtExcluding(Point,
Collection, EditPartViewer.Conditional)
protected void fireSelectionChanged()
AbstractEditPartViewer
fireSelectionChanged
in class AbstractEditPartViewer
AbstractEditPartViewer.fireSelectionChanged()
protected void hookControl()
hookControl
in class AbstractEditPartViewer
AbstractEditPartViewer.unhookControl()
public void reveal(EditPart part)
EditPartViewer
reveal
in interface EditPartViewer
reveal
in class AbstractEditPartViewer
part
- the EditPart to revealAbstractEditPartViewer.reveal(org.eclipse.gef.EditPart)
protected void unhookControl()
unhookControl
in class AbstractEditPartViewer
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.