|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.model.gmf.GmfFrameworkBridge
public class GmfFrameworkBridge
Domain model element provider for GMF.
Constructor Summary | |
---|---|
GmfFrameworkBridge()
|
Method Summary | |
---|---|
static org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart |
getDiagramEditPart(EditPart editPart)
Finds the diagram edit part of an edit part. |
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. |
static EditPart |
getEditPart(org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart dep,
EObject element)
Find an edit part that is contained in the given diagram edit part. |
static EditPart |
getEditPart(org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart dep,
View view)
Find an edit part that is contained in the given diagram edit part. |
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. |
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 GmfFrameworkBridge()
Method Detail |
---|
public boolean supports(Object object)
supports
in interface IGraphicalFrameworkBridge
object
- an edit part, editor part, or notational object
public static org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart getDiagramEditPart(EditPart editPart)
editPart
- an edit part
null
if there is no containing diagram
edit partpublic static EditPart getEditPart(org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart dep, EObject element)
dep
- a diagram edit partelement
- a model element
null
public static EditPart getEditPart(org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart dep, View view)
dep
- a diagram edit partview
- a notation view
null
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 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 |