|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kvid.KvidUtil
public final class KvidUtil
Utility class for the KViD-Plugin. Holds commonly used methods statically.
Method Summary | |
---|---|
static String |
fragmentUri2PtolemyUri(String fragmentUri,
Resource resource)
Converts a EMF/GMF Fragment URI into a Ptolemy URI. |
static IEditorPart |
getActiveEditor()
Helper method for getting the currently active editor. |
static List<List<Point>> |
getPathsByElement(KvidUri elementUri,
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor currentEditor,
LayoutMapping<?> diagramLayout)
Compute animation paths and location for a given model element (referred by an URI). |
static String |
ptolemyUri2FragmentUri(String ptolemyUri,
Resource resource)
Converts a Ptolemy URI into a EMF/GMF Fragment URI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String fragmentUri2PtolemyUri(String fragmentUri, Resource resource)
fragmentUri
- The Fragment URI to convertresource
- The resource which holds the model element referred by
the Fragment URI
public static String ptolemyUri2FragmentUri(String ptolemyUri, Resource resource)
ptolemyUri
- A Ptolemy URI referring the model elementresource
- The resource which holds the model element referred by
the Fragment URI
public static List<List<Point>> getPathsByElement(KvidUri elementUri, org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor currentEditor, LayoutMapping<?> diagramLayout)
elementUri
- The URI object referring the model elementcurrentEditor
- The editor which holds the model elementdiagramLayout
- The layout of the diagram which contains the model element
Point
spublic static IEditorPart getActiveEditor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |