|
Modelers | |||||||||
| 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.AbstractGraphicalEditPart
org.topcased.modeler.edit.BaseEditPart
org.topcased.modeler.edit.EListEditPart
public class EListEditPart
This edit part adds abilities for model objects linked with the EStructuralFeature of an EMF object.
Creation : 09 jan. 2006
| Nested Class Summary | |
|---|---|
protected class |
EListEditPart.EListEditPartListener
Typed listener for a GraphNode |
| Nested classes/interfaces inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart |
|---|
org.eclipse.gef.editparts.AbstractGraphicalEditPart.AccessibleGraphicalEditPart, org.eclipse.gef.editparts.AbstractGraphicalEditPart.DefaultAccessibleAnchorProvider |
| Nested classes/interfaces inherited from class org.eclipse.gef.editparts.AbstractEditPart |
|---|
org.eclipse.gef.editparts.AbstractEditPart.EditPolicyIterator |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart |
|---|
figure, sourceConnections, targetConnections |
| 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 | |
|---|---|
EListEditPart(GraphNode obj,
EStructuralFeature feature)
Constructor |
|
| Method Summary | |
|---|---|
void |
activate()
|
protected void |
createEditPolicies()
Creates edit policies and associates these with roles |
protected org.eclipse.draw2d.IFigure |
createFigure()
|
protected void |
createNewNodes(java.util.List modelChildren)
This method synchronizes the graphical objects with the model children |
void |
deactivate()
|
java.util.List |
getChildren()
|
protected DiagramElementListener |
getDiagramElementListener()
Returns the listener used to listen the graphical mode object |
EObject |
getEObject()
Retrieve the model object |
EStructuralFeature |
getEStructuralFeature()
Get the EStructuralFeature that contains the objects that are associated with the list |
protected GraphNode |
getGraphNode()
Get the graphNode model object (DI) associated with the EditPart |
protected java.util.List |
getModelChildren()
|
protected void |
handleModelChanged(Notification msg)
This method is called when an event occured on the model objects |
boolean |
isSelectable()
|
boolean |
isSynchronized()
Returns true if this editpart is synchronized with the model content |
protected void |
removeUnusedNodes(java.util.List modelChildren)
emoves the contained graphnodes that do not reference a valid child |
void |
setSynchronized(boolean isSynchro)
Set the synchronization state of this editpart |
| Methods inherited from class org.topcased.modeler.edit.BaseEditPart |
|---|
createSnapToHelper, getAdapter, getModelListener, refresh, updateModelListening |
| Methods inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart |
|---|
addChildVisual, addNodeListener, addNotify, addSourceConnection, addTargetConnection, createConnection, createOrFindConnection, fireRemovingSourceConnection, fireRemovingTargetConnection, fireSourceConnectionAdded, fireTargetConnectionAdded, getContentPane, getDragTracker, getFigure, getLayer, getModelSourceConnections, getModelTargetConnections, getSourceConnections, getTargetConnections, primAddSourceConnection, primAddTargetConnection, primRemoveSourceConnection, primRemoveTargetConnection, refreshSourceConnections, refreshTargetConnections, registerVisuals, removeChildVisual, removeNodeListener, removeNotify, removeSourceConnection, removeTargetConnection, reorderChild, reorderSourceConnection, reorderTargetConnection, setFigure, setLayoutConstraint, unregisterVisuals |
| Methods inherited from class org.eclipse.gef.editparts.AbstractEditPart |
|---|
activateEditPolicies, addChild, addEditPartListener, createChild, deactivateEditPolicies, debug, debugFeedback, eraseSourceFeedback, eraseTargetFeedback, fireActivated, fireChildAdded, fireDeactivated, fireRemovingChild, fireSelectionChanged, getAccessibleEditPart, getCommand, getEditPolicy, getEditPolicyIterator, getEventListeners, getFlag, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, performRequest, refreshChildren, refreshVisuals, register, registerAccessibility, registerModel, removeChild, removeEditPartListener, removeEditPolicy, setFlag, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, toString, understandsRequest, unregister, unregisterAccessibility, unregisterModel |
| 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, eraseSourceFeedback, eraseTargetFeedback, getCommand, getEditPolicy, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, performRequest, removeEditPartListener, removeEditPolicy, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest |
| Constructor Detail |
|---|
public EListEditPart(GraphNode obj,
EStructuralFeature feature)
obj - feature - the EStructuralFeature| Method Detail |
|---|
protected DiagramElementListener getDiagramElementListener()
BaseEditPart
getDiagramElementListener in class BaseEditPartBaseEditPart.getDiagramElementListener()public void activate()
activate in interface org.eclipse.gef.EditPartactivate in class org.eclipse.gef.editparts.AbstractGraphicalEditPartEditPart.activate()public void deactivate()
deactivate in interface org.eclipse.gef.EditPartdeactivate in class org.eclipse.gef.editparts.AbstractGraphicalEditPartEditPart.deactivate()public boolean isSynchronized()
true if this editpart is synchronized with the model content
public void setSynchronized(boolean isSynchro)
isSynchro - if true the content of the list is synchronized with the model content.protected void createEditPolicies()
createEditPolicies in class BaseEditPartAbstractEditPart.createEditPolicies()public EStructuralFeature getEStructuralFeature()
protected GraphNode getGraphNode()
public EObject getEObject()
protected org.eclipse.draw2d.IFigure createFigure()
createFigure in class org.eclipse.gef.editparts.AbstractGraphicalEditPartAbstractGraphicalEditPart.createFigure()public boolean isSelectable()
isSelectable in interface org.eclipse.gef.EditPartisSelectable in class org.eclipse.gef.editparts.AbstractEditPartEditPart.isSelectable()protected java.util.List getModelChildren()
getModelChildren in class org.eclipse.gef.editparts.AbstractEditPartAbstractEditPart.getModelChildren()protected void createNewNodes(java.util.List modelChildren)
modelChildren - the model children to displayprotected void removeUnusedNodes(java.util.List modelChildren)
modelChildren - the list of valid childrenprotected void handleModelChanged(Notification msg)
BaseEditPart
handleModelChanged in class BaseEditPartmsg - the event notificationBaseEditPart.handleModelChanged(Notification)public java.util.List getChildren()
getChildren in interface org.eclipse.gef.EditPartgetChildren in class org.eclipse.gef.editparts.AbstractEditPartEditPart.getChildren()
|
Modelers | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.