|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.model.graphiti.GraphitiFrameworkBridge
public class GraphitiFrameworkBridge
Editing provider for Graphiti.
Constructor Summary | |
---|---|
GraphitiFrameworkBridge()
|
Method Summary | |
---|---|
IFigure |
getDrawingLayer(EditPart editPart)
Returns a layer figure for the associated diagram that can be used to draw additional information. |
EditingDomain |
getEditingDomain(Object object)
Retrieve the editing domain for model changes of the given object. |
EditPart |
getEditPart(IWorkbenchPart workbenchPart,
Object object)
Returns the relevant edit part for the given object. |
EditPart |
getEditPart(Object object)
Returns the relevant edit part for the given object. |
static org.eclipse.graphiti.ui.internal.parts.IPictogramElementEditPart |
getEditPartFromDiagramEditorInternal2(EditPart editPart)
In some cases the EditPart passed to the methods is the mysterious DiagramEditorInternal$2. |
EObject |
getElement(Object object)
Retrieve the domain model element from the given object. |
EObject |
getNotationElement(Object object)
Retrieve the notational model element from the given object. |
ISelection |
getSelection(IWorkbenchPart workbenchPart)
Returns the current selection for the given editor part. |
ZoomManager |
getZoomManager(EditPart editPart)
Returns a zoom manager for the associated diagram. |
boolean |
supports(Object object)
Determine whether this bridge supports the given object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphitiFrameworkBridge()
Method Detail |
---|
public boolean supports(Object object)
supports
in interface IGraphicalFrameworkBridge
object
- an edit part, editor part, or notational object
public EObject getElement(Object object)
getElement
in interface IGraphicalFrameworkBridge
object
- a selectable object, such as an edit part
null
if there is nonepublic EObject getNotationElement(Object object)
getNotationElement
in interface IGraphicalFrameworkBridge
object
- a selectable object, such as an edit part
null
if there is nonepublic EditPart getEditPart(Object object)
getEditPart
in interface IGraphicalFrameworkBridge
object
- an editor part, edit part, notational object, or model element
null
if the passed object cannot
be handledpublic EditPart getEditPart(IWorkbenchPart workbenchPart, Object object)
getEditPart
in interface IGraphicalFrameworkBridge
workbenchPart
- a workbench part containing a diagramobject
- an edit part, notational object, or model element
null
if the passed object cannot
be handledpublic EditingDomain getEditingDomain(Object object)
getEditingDomain
in interface IGraphicalFrameworkBridge
object
- a selectable object, such as an edit part
null
if there is nonepublic static org.eclipse.graphiti.ui.internal.parts.IPictogramElementEditPart getEditPartFromDiagramEditorInternal2(EditPart editPart)
editPart
- the diagram's top-level edit part
public IFigure getDrawingLayer(EditPart editPart)
getDrawingLayer
in interface IGraphicalFrameworkBridge
editPart
- an edit part from a graphical diagram
public ZoomManager getZoomManager(EditPart editPart)
getZoomManager
in interface IGraphicalFrameworkBridge
editPart
- an edit part from a graphical diagram
public ISelection getSelection(IWorkbenchPart workbenchPart)
getSelection
in interface IGraphicalFrameworkBridge
workbenchPart
- a workbench part containing a diagram
null
if the selection cannot
be determined
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |