|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.gef.editparts.AbstractEditPart org.eclipse.gef.editparts.AbstractGraphicalEditPart sk.uniba.euromath.editor.xmlEditor.editParts.XMLEditPart
public class XMLEditPart
The only editpart which uses xmlEditor. One speciality is, that model of this editpart is IEMFigure, because is created for IEMFigure, which needsEditPart and as childModels return list of IEMFigures.
Nested Class Summary |
---|
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 | |
---|---|
protected String |
id
Id of node from source document corresponding to this EditPart. |
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 | |
---|---|
XMLEditPart(IEMFigure figure,
Boolean selectable)
Constructor. |
Method Summary | |
---|---|
protected void |
addChildVisual(org.eclipse.gef.EditPart childEditPart,
int index)
|
protected List<IEMFigure> |
computeModelChildren()
|
protected void |
createEditPolicies()
|
protected org.eclipse.draw2d.IFigure |
createFigure()
Due to our architecture, EditParts don't creates figures, they uses figures from renderer. |
org.eclipse.gef.DragTracker |
getDragTracker(org.eclipse.gef.Request request)
|
String |
getID()
|
protected List |
getModelChildren()
|
List<org.eclipse.gef.EditPart> |
getNavigationSiblings()
Returns the list of editparts which are conceptually at the same level of navigation as this editpart. |
org.eclipse.gef.EditPart |
getTargetEditPart(org.eclipse.gef.Request request)
|
protected XMLEditPartFactory |
getXMLEditPartFactory()
Returns XMLEditPartFactory. |
boolean |
isSelectable()
|
protected void |
refreshVisuals()
|
protected void |
removeChildVisual(org.eclipse.gef.EditPart childEditPart)
|
void |
setID(String id)
|
void |
setSelectability(Boolean value)
Sets if the editPart can be selected or no. |
Methods inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart |
---|
activate, addNodeListener, addNotify, addSourceConnection, addTargetConnection, createConnection, createOrFindConnection, deactivate, fireRemovingSourceConnection, fireRemovingTargetConnection, fireSourceConnectionAdded, fireTargetConnectionAdded, getAdapter, getContentPane, getFigure, getLayer, getModelSourceConnections, getModelTargetConnections, getSourceConnections, getTargetConnections, primAddSourceConnection, primAddTargetConnection, primRemoveSourceConnection, primRemoveTargetConnection, refresh, refreshSourceConnections, refreshTargetConnections, registerVisuals, 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, getChildren, getCommand, getEditPolicy, getEditPolicyIterator, getEventListeners, getFlag, getModel, getParent, getRoot, getSelected, getViewer, hasFocus, installEditPolicy, isActive, performRequest, refreshChildren, 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, getChildren, getCommand, getEditPolicy, getModel, getParent, getRoot, getSelected, getViewer, hasFocus, installEditPolicy, isActive, performRequest, removeEditPartListener, removeEditPolicy, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest |
Field Detail |
---|
protected String id
Constructor Detail |
---|
public XMLEditPart(IEMFigure figure, Boolean selectable)
figure
- not nullselectable
- if Method Detail |
---|
public org.eclipse.gef.EditPart getTargetEditPart(org.eclipse.gef.Request request)
getTargetEditPart
in interface org.eclipse.gef.EditPart
getTargetEditPart
in class org.eclipse.gef.editparts.AbstractEditPart
EditPart.getTargetEditPart(org.eclipse.gef.Request)
protected List<IEMFigure> computeModelChildren()
protected XMLEditPartFactory getXMLEditPartFactory()
protected List getModelChildren()
getModelChildren
in class org.eclipse.gef.editparts.AbstractEditPart
protected org.eclipse.draw2d.IFigure createFigure()
createFigure
in class org.eclipse.gef.editparts.AbstractGraphicalEditPart
protected void createEditPolicies()
createEditPolicies
in class org.eclipse.gef.editparts.AbstractEditPart
public String getID()
public void setID(String id)
id
- sets idprotected void refreshVisuals()
refreshVisuals
in class org.eclipse.gef.editparts.AbstractEditPart
protected void addChildVisual(org.eclipse.gef.EditPart childEditPart, int index)
addChildVisual
in class org.eclipse.gef.editparts.AbstractGraphicalEditPart
protected void removeChildVisual(org.eclipse.gef.EditPart childEditPart)
removeChildVisual
in class org.eclipse.gef.editparts.AbstractGraphicalEditPart
public org.eclipse.gef.DragTracker getDragTracker(org.eclipse.gef.Request request)
getDragTracker
in interface org.eclipse.gef.EditPart
getDragTracker
in class org.eclipse.gef.editparts.AbstractGraphicalEditPart
request
- can be anything, the result does not depent on request
public List<org.eclipse.gef.EditPart> getNavigationSiblings()
This is not everytime that what we want.Think about that the parent is non visible XMLEditPart So this method should by overriden
public void setSelectability(Boolean value)
value
- if true then the EditPart can be selected
public boolean isSelectable()
isSelectable
in interface org.eclipse.gef.EditPart
isSelectable
in class org.eclipse.gef.editparts.AbstractEditPart
true if the EditPart can be selected, used when clicking on this editPart- See Also:
AbstractEditPart.isSelectable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |