|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.graphiti.pattern.AbstractBasePattern
org.eclipse.graphiti.pattern.AbstractConnectionPattern
public abstract class AbstractConnectionPattern
The Class AbstractConnectionPattern.
| Constructor Summary | |
|---|---|
AbstractConnectionPattern()
Creates a new AbstractConnectionPattern. |
|
| Method Summary | |
|---|---|
protected Connection |
addGraphicalRepresentation(IConnectionContext context,
Object newObject)
Adds the graphical representation. |
void |
attachedToSource(ICreateConnectionContext context)
Will called after a connection was successfully attached to an anchor of a source object. Note: In contrast to the standard feature methods like ICreateConnection.canCreate(ICreateConnectionContext) and
ICreateConnection.create(ICreateConnectionContext) this method will not be called
in the scope of an EMF transaction. |
void |
canceledAttaching(ICreateConnectionContext context)
Will called if the connection creation process was canceled after the successful attachment of the connection to an anchor of a source object. |
boolean |
canCreate(ICreateConnectionContext context)
Can create. |
boolean |
canStartConnection(ICreateConnectionContext context)
Can start connection. |
Connection |
create(ICreateConnectionContext context)
Creates the. |
void |
endConnecting()
Will called after a connection creation tool from the palette was deselected. Note: In contrast to the standard feature methods like ICreateConnection.canCreate(ICreateConnectionContext) and
ICreateConnection.create(ICreateConnectionContext) this method will not be called
in the scope of an EMF transaction. |
protected static AddConnectionContext |
getAddConnectionContext(ICreateConnectionContext context)
Gets the adds the connection context. |
String |
getCreateDescription()
Gets the create description. |
String |
getCreateImageId()
Gets the create image id. |
String |
getCreateLargeImageId()
Gets the create large image id. |
String |
getCreateName()
Gets the create name. |
protected String |
getText(IStructureMapping structureMapping,
PictogramLink link)
Gets the text. |
protected void |
layoutPictogramElement(PictogramElement pe)
Layout pictogram element. |
void |
startConnecting()
Will called after a connection creation tool from the palette was selected. Note: In contrast to the standard feature methods like ICreateConnection.canCreate(ICreateConnectionContext) and
ICreateConnection.create(ICreateConnectionContext) this method will not be called
in the scope of an EMF transaction. |
protected void |
updatePictogramElement(PictogramElement pe)
Update pictogram element. |
| Methods inherited from class org.eclipse.graphiti.pattern.AbstractBasePattern |
|---|
add, canAdd, getBusinessObjectForPictogramElement, getDiagram, getDiagramEditor, getFeatureProvider, getMappingProvider, link, link, manageColor, manageColor, setFeatureProvider |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.graphiti.pattern.IConnectionPattern |
|---|
setFeatureProvider |
| Methods inherited from interface org.eclipse.graphiti.func.IAdd |
|---|
add, canAdd |
| Constructor Detail |
|---|
public AbstractConnectionPattern()
AbstractConnectionPattern.
| Method Detail |
|---|
protected static AddConnectionContext getAddConnectionContext(ICreateConnectionContext context)
context - the create connection context
public boolean canCreate(ICreateConnectionContext context)
ICreateConnection
canCreate in interface ICreateConnectioncontext - the context
public boolean canStartConnection(ICreateConnectionContext context)
ICreateConnection
canStartConnection in interface ICreateConnectioncontext - the context
public Connection create(ICreateConnectionContext context)
ICreateConnection
create in interface ICreateConnectioncontext - the context
protected Connection addGraphicalRepresentation(IConnectionContext context,
Object newObject)
context - the connection contextnewObject - the new object
protected String getText(IStructureMapping structureMapping,
PictogramLink link)
structureMapping - the structure mappinglink - the pictogram link
protected void layoutPictogramElement(PictogramElement pe)
pe - the pictogram elementprotected void updatePictogramElement(PictogramElement pe)
pe - the pictogram elementpublic String getCreateDescription()
ICreateInfo
getCreateDescription in interface ICreateInfopublic String getCreateImageId()
ICreateInfo
getCreateImageId in interface ICreateInfopublic String getCreateLargeImageId()
ICreateInfo
getCreateLargeImageId in interface ICreateInfopublic String getCreateName()
ICreateInfo
getCreateName in interface ICreateInfopublic void startConnecting()
ICreateConnectionICreateConnection.canCreate(ICreateConnectionContext) and
ICreateConnection.create(ICreateConnectionContext) this method will not be called
in the scope of an EMF transaction. In case you want to modify the model
(EMF domain objects or Graphiti pictogram objects) you need to do that
within a command executed on the editor's command stack to make sure that
the modification happens inside an EMF write transaction. Keep in mind
that any changes you do within such a command will be create a seperate
entry in the undo/redo stack for the editor, which might not be the
desired effect.
startConnecting in interface ICreateConnectionpublic void endConnecting()
ICreateConnectionICreateConnection.canCreate(ICreateConnectionContext) and
ICreateConnection.create(ICreateConnectionContext) this method will not be called
in the scope of an EMF transaction. In case you want to modify the model
(EMF domain objects or Graphiti pictogram objects) you need to do that
within a command executed on the editor's command stack to make sure that
the modification happens inside an EMF write transaction. Keep in mind
that any changes you do within such a command will be create a seperate
entry in the undo/redo stack for the editor, which might not be the
desired effect.
endConnecting in interface ICreateConnectionpublic void attachedToSource(ICreateConnectionContext context)
ICreateConnectionICreateConnection.canCreate(ICreateConnectionContext) and
ICreateConnection.create(ICreateConnectionContext) this method will not be called
in the scope of an EMF transaction. In case you want to modify the model
(EMF domain objects or Graphiti pictogram objects) you need to do that
within a command executed on the editor's command stack to make sure that
the modification happens inside an EMF write transaction. Keep in mind
that any changes you do within such a command will be create a seperate
entry in the undo/redo stack for the editor, which might not be the
desired effect.
attachedToSource in interface ICreateConnectioncontext - the contextpublic void canceledAttaching(ICreateConnectionContext context)
ICreateConnectionICreateConnection.canCreate(ICreateConnectionContext) and
ICreateConnection.create(ICreateConnectionContext) this method will not be called
in the scope of an EMF transaction. In case you want to modify the model
(EMF domain objects or Graphiti pictogram objects) you need to do that
within a command executed on the editor's command stack to make sure that
the modification happens inside an EMF write transaction. Keep in mind
that any changes you do within such a command will be create a seperate
entry in the undo/redo stack for the editor, which might not be the
desired effect.
canceledAttaching in interface ICreateConnectioncontext - the context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||