Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsGet domain model file in RPC Editor
https://www.eclipse.org/forums/index.php/mv/msg/75023/234277/#msg_234277
i need the domain model file of my diagram.
But the Problem is that e.g.
WorkspaceSynchronizer.getFile(diagram.getElement().eResource ()) always
returns null.
I think the problem could be that in a RCP Editor i have no real workspace
with projects and files unedr control.
Does anybody know a way to get the domain model file in a stand alone
editor ?
Kind Regards
Patrick]]>Patrick Schmitt2009-06-19T14:54:42-00:00Re: Get domain model file in RPC Editor
https://www.eclipse.org/forums/index.php/mv/msg/75023/234297/#msg_234297
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().getActi vePage();
IEditorPart part = page.getActiveEditor();