public class TreeViewer extends AbstractEditPartViewer
Tree.EditPartViewer.ConditionalconstantSelection, 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, unregisterAccessibleEditPartpublic TreeViewer()
public Control createControl(Composite parent)
createControl in interface EditPartViewercreateControl in class AbstractEditPartViewerparent - The parent for the TreeEditPartViewer.createControl(Composite)public EditPart findObjectAtExcluding(Point pt, java.util.Collection exclude, EditPartViewer.Conditional condition)
EditPartViewernull 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()
AbstractEditPartViewerfireSelectionChanged in class AbstractEditPartViewerAbstractEditPartViewer.fireSelectionChanged()protected void hookControl()
hookControl in class AbstractEditPartViewerAbstractEditPartViewer.unhookControl()public void reveal(EditPart part)
EditPartViewerreveal in interface EditPartViewerreveal in class AbstractEditPartViewerpart - the EditPart to revealAbstractEditPartViewer.reveal(org.eclipse.gef.EditPart)protected void unhookControl()
unhookControl in class AbstractEditPartViewerCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.