Reading created model [message #1224775] |
Fri, 27 December 2013 18:54 |
|
Hi,
I have created an eclipse graphiti plugin, but now I wanna be able to click on a button and convert the model created with the graphical editor to text. The problem is: I can't find a way to read the model that is being created on the editor.
Is there a way to do that?
Thanks!
|
|
|
|
Re: Reading created model [message #1249018 is a reply to message #1228566] |
Mon, 17 February 2014 22:26 |
|
Hi Michael, thanks for your reply!
I'll be more specific about what I want: when I create a Graphiti model (based on my ecore model), I wanna be able to click on a Eclipse menu item and run a handler that needs to access the ecore model with the contents of the diagram I'm working on. How is that possible?
Thanks.
|
|
|
|
Re: Reading created model [message #1252635 is a reply to message #1249436] |
Fri, 21 February 2014 12:30 |
|
Hi,
I can do that from the diagram editor code, but I want to do that from the handler of a menu button (created using the commands extension point).
Is that possible?
If not, can I read the model from the file on disk after I save it with the editor?
Thanks.
|
|
|
|
Re: Reading created model [message #1256933 is a reply to message #1252799] |
Tue, 25 February 2014 23:50 |
|
Maybe that's what I need. Unfortunately I'm having some import errors, and I don't know which packages I should install. I've installed the EMF SDK and the Graphical Editing Framework GEF SDK, but to no avail...
The packages that cannot be resolved are:
org.eclipse.emf.edit.domain.IEditingDomainProvider,
org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor and
org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.
They are referenced indirectly when I import org.eclipse.graphiti.ui.editor.DiagramEditor.
Which packages should I install?
Thaks.
-- edit --
Just found a workaround: manually imported org.eclipse.ui.*; org.eclipse.emf.* and org.eclipse.gef.* in the project build path.
[Updated on: Wed, 26 February 2014 23:25] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04050 seconds