[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Re: Get domain model file in RPC Editor
|
Sorry, looks like I was the whole afternoon running in a cycle.
The solution is quite simple, just didnt find it :(
Here is the way now to get the domain model file:
IWorkbenchPage page =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
IEditorPart part = page.getActiveEditor();
if(part instanceof YourDiagrammEditor)
{
YourDiagrammEditor dslPart = (YourDiagrammEditor)part;
Diagram d = dslPart.getDiagram();
Resource res = d.getElement().eResource();
String pathToFile= res.getURI().devicePath();
}