|
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
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(org.eclipse.draw2d.geometry.Point pt,
Collection exclude,
EditPartViewer.Conditional condition)
Returns the Data of the TreeItem at the given point. |
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)
Shows 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 Composite for the Control (tree).
EditPartViewer.setControl(Control)
public EditPart findObjectAtExcluding(org.eclipse.draw2d.geometry.Point pt, Collection exclude, EditPartViewer.Conditional condition)
Data
of the TreeItem at the given point. Returns null if the
Point is not on the Control (Tree). Returns the data of the Tree if there is no
TreeItem at the given point. Sub-classes can override this method to respect the
request to exclude the Objects in the given Collection.
pt
- The location at which to look for a TreeItemexclude
- The collection of EditParts to be excluded.condition
- the Conditional used to evaluate a potential hit
null
or an EditPartprotected void fireSelectionChanged()
AbstractEditPartViewer
fireSelectionChanged
in class AbstractEditPartViewer
protected void hookControl()
hookControl
in class AbstractEditPartViewer
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 |