|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.gef.ui.parts.AbstractEditPartViewer | +--org.eclipse.gef.ui.parts.TreeViewer
An EditPartViewer implementation based on a Tree
.
Nested Class Summary |
Nested classes inherited from class org.eclipse.gef.EditPartViewer |
EditPartViewer.Conditional |
Field Summary |
Fields inherited from class org.eclipse.gef.ui.parts.AbstractEditPartViewer |
constantSelection, selection, selectionListeners |
Constructor Summary | |
TreeViewer()
The constructor. |
Method Summary | |
Control |
createControl(Composite parent)
Creates the default tree and sets it as the control. |
EditPart |
findObjectAtExcluding(Point pt,
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TreeViewer()
Method Detail |
public Control createControl(Composite parent)
createControl
in interface EditPartViewer
createControl
in class AbstractEditPartViewer
parent
- The parent for the Tree
EditPartViewer.createControl(org.eclipse.swt.widgets.Composite)
public EditPart findObjectAtExcluding(Point pt, 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 hit
null
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
AbstractEditPartViewer.reveal(org.eclipse.gef.EditPart)
protected void unhookControl()
unhookControl
in class AbstractEditPartViewer
|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |