|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.editparts.AbstractEditPart
org.eclipse.gef.editparts.AbstractTreeEditPart
roneditor.edit.parts.RONTreeEditPart
public class RONTreeEditPart
TreeEditPart for the top-level container item in the tree editor. This provides an visual item in the tree editor and allows the execution of actions to create HLPlaces and HLTransitions via context menu on this item.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.gef.editparts.AbstractEditPart |
---|
org.eclipse.gef.editparts.AbstractEditPart.EditPolicyIterator |
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
---|
org.eclipse.emf.common.notify.Adapter.Internal |
Field Summary | |
---|---|
private org.eclipse.ui.views.properties.IPropertySource |
propertySource
|
private org.eclipse.emf.common.notify.Notifier |
target
Target field for Adapter implementation. |
Fields inherited from class org.eclipse.gef.editparts.AbstractTreeEditPart |
---|
widget |
Fields inherited from class org.eclipse.gef.editparts.AbstractEditPart |
---|
children, FLAG_ACTIVE, FLAG_FOCUS, MAX_FLAG |
Fields inherited from interface org.eclipse.gef.EditPart |
---|
SELECTED, SELECTED_NONE, SELECTED_PRIMARY |
Fields inherited from interface org.eclipse.gef.RequestConstants |
---|
REQ_ADD, REQ_ALIGN, REQ_ALIGN_CHILDREN, REQ_CLONE, REQ_CONNECTION_END, REQ_CONNECTION_START, REQ_CREATE, REQ_CREATE_BENDPOINT, REQ_DELETE, REQ_DELETE_DEPENDANT, REQ_DIRECT_EDIT, REQ_MOVE, REQ_MOVE_BENDPOINT, REQ_MOVE_CHILDREN, REQ_OPEN, REQ_ORPHAN, REQ_ORPHAN_CHILDREN, REQ_RECONNECT_SOURCE, REQ_RECONNECT_TARGET, REQ_RESIZE, REQ_RESIZE_CHILDREN, REQ_SELECTION, REQ_SELECTION_HOVER |
Constructor Summary | |
---|---|
RONTreeEditPart(java.lang.Object model)
|
Method Summary | |
---|---|
void |
activate()
Hooks in this EditPart as a listener for changes of its model. |
void |
deactivate()
Hooks off this EditPart as a listener for changes of its model. |
java.lang.Object |
getAdapter(java.lang.Class key)
|
ronmodel.RON |
getCastedModel()
Convenience method that casts the model to the appropriate type. |
org.eclipse.gef.commands.Command |
getCommand(org.eclipse.gef.Request request)
Returns a Command if the appropriate request is passed. |
org.eclipse.gef.DragTracker |
getDragTracker(org.eclipse.gef.Request req)
Returns a DragTracker to handle direct editing and/or opening. |
protected org.eclipse.swt.graphics.Image |
getImage()
|
protected java.util.List<java.lang.Object> |
getModelChildren()
Returns a List of all HLNodes in the RON which is the model of this EditPart. |
private org.eclipse.ui.views.properties.IPropertySource |
getPropertySource()
|
org.eclipse.emf.common.notify.Notifier |
getTarget()
|
boolean |
isAdapterForType(java.lang.Object type)
|
void |
notifyChanged(org.eclipse.emf.common.notify.Notification notification)
If the model fires a property change notification to its listeners, the visual elements which are managed by this EditPart will be refrehed depending on the featureID the notifiation contains. |
void |
setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
|
boolean |
understandsRequest(org.eclipse.gef.Request req)
Besides the requests handled by the installed EditPolicies (none for this EditPart) this EditPart understands following request. |
Methods inherited from class org.eclipse.gef.editparts.AbstractTreeEditPart |
---|
addChildVisual, checkTreeItem, createEditPolicies, getText, getWidget, refreshVisuals, removeChildVisual, reorderChild, setWidget, setWidgetImage, setWidgetText |
Methods inherited from class org.eclipse.gef.editparts.AbstractEditPart |
---|
activateEditPolicies, addChild, addEditPartListener, addNotify, createChild, deactivateEditPolicies, debug, debugFeedback, eraseSourceFeedback, eraseTargetFeedback, fireActivated, fireChildAdded, fireDeactivated, fireRemovingChild, fireSelectionChanged, getAccessibleEditPart, getChildren, getEditPolicy, getEditPolicyIterator, getEventListeners, getFlag, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, isSelectable, performRequest, refresh, refreshChildren, register, registerAccessibility, registerModel, registerVisuals, removeChild, removeEditPartListener, removeEditPolicy, removeNotify, setFlag, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, toString, unregister, unregisterAccessibility, unregisterModel, unregisterVisuals |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.gef.EditPart |
---|
addEditPartListener, addNotify, eraseSourceFeedback, eraseTargetFeedback, getChildren, getEditPolicy, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, isSelectable, performRequest, refresh, removeEditPartListener, removeEditPolicy, removeNotify, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback |
Field Detail |
---|
private org.eclipse.emf.common.notify.Notifier target
Adapter
implementation.
private org.eclipse.ui.views.properties.IPropertySource propertySource
Constructor Detail |
---|
public RONTreeEditPart(java.lang.Object model)
Method Detail |
---|
protected java.util.List<java.lang.Object> getModelChildren()
getModelChildren
in class org.eclipse.gef.editparts.AbstractEditPart
public ronmodel.RON getCastedModel()
protected org.eclipse.swt.graphics.Image getImage()
getImage
in class org.eclipse.gef.editparts.AbstractTreeEditPart
public boolean understandsRequest(org.eclipse.gef.Request req)
understandsRequest
in interface org.eclipse.gef.EditPart
understandsRequest
in class org.eclipse.gef.editparts.AbstractEditPart
public org.eclipse.gef.commands.Command getCommand(org.eclipse.gef.Request request)
getCommand
in interface org.eclipse.gef.EditPart
getCommand
in class org.eclipse.gef.editparts.AbstractEditPart
public void activate()
activate
in interface org.eclipse.gef.EditPart
activate
in class org.eclipse.gef.editparts.AbstractEditPart
public void deactivate()
deactivate
in interface org.eclipse.gef.EditPart
deactivate
in class org.eclipse.gef.editparts.AbstractEditPart
public org.eclipse.gef.DragTracker getDragTracker(org.eclipse.gef.Request req)
TreeItem
a
SelectEditPartTracker
instead of a DragTreeItemsTracker
is returned, so that this EditPart can be selected with a click on the
background.
getDragTracker
in interface org.eclipse.gef.EditPart
getDragTracker
in class org.eclipse.gef.editparts.AbstractTreeEditPart
public java.lang.Object getAdapter(java.lang.Class key)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getAdapter
in class org.eclipse.gef.editparts.AbstractEditPart
private org.eclipse.ui.views.properties.IPropertySource getPropertySource()
public boolean isAdapterForType(java.lang.Object type)
isAdapterForType
in interface org.eclipse.emf.common.notify.Adapter
public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
notifyChanged
in interface org.eclipse.emf.common.notify.Adapter
public void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
setTarget
in interface org.eclipse.emf.common.notify.Adapter
public org.eclipse.emf.common.notify.Notifier getTarget()
getTarget
in interface org.eclipse.emf.common.notify.Adapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |