|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGraphicalFrameworkBridge
Interface for bridges to graphical editing frameworks. This can be used to connect code that is independent of specific editor frameworks to frameworks such as GMF.
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 editorPart,
Object object)
Returns the relevant edit part for the given object. |
EditPart |
getEditPart(Object object)
Returns the relevant edit part for the given object. |
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. |
Method Detail |
---|
boolean supports(Object object)
object
- an edit part, editor part, or notational object
EObject getElement(Object object)
object
- a selectable object, such as an edit part
null
if there is noneEObject getNotationElement(Object object)
object
- a selectable object, such as an edit part
null
if there is noneEditPart getEditPart(Object object)
object
- an editor part, edit part, notational object, or model element
null
if the passed object cannot
be handledEditPart getEditPart(IWorkbenchPart editorPart, Object object)
editorPart
- a workbench part containing a diagramobject
- an edit part, notational object, or model element
null
if the passed object cannot
be handledEditingDomain getEditingDomain(Object object)
object
- a selectable object, such as an edit part
null
if there is noneIFigure getDrawingLayer(EditPart editPart)
editPart
- an edit part from a graphical diagram
ZoomManager getZoomManager(EditPart editPart)
editPart
- an edit part from a graphical diagram
ISelection getSelection(IWorkbenchPart workbenchPart)
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 |