How to create an image viewer integrated to GMF-based editors [message #644099] |
Thu, 09 December 2010 13:49 |
Tiago Messages: 11 Registered: July 2009 |
Junior Member |
|
|
Hi,
My name is Tiago,
I'm creating a GMF-based editor which has many kinds of editors according to the type of the elements. I'm using diagram partitioning to allow users to double click on one element and open a new diagram editor (http://www.jevon.org/wiki/GMF_Diagram_Partitioning).
I already create some of the diagram editors and they work fine. But one of the "editor" is just a image viewer (like in the article "A Basic Image Viewer" < http://www.eclipse.org/articles/Article-Image-Viewer/Image_v iewer.html>).
So, my problem is that I don't know how to implement the following steps:
1) once user double-click on image-type element, I have to execute a Lua script code to generate and save the corresponding image (.png),
2) then, I have to load and show this image in a Editor (or View) with basic resources like that provided by the plug-in created in the article "A basic image viewer".
This 2 steps have to be transparent for users, as only a double-click command.
Thanks for help
Tiago Lima
|
|
|
Powered by
FUDForum. Page generated in 0.02839 seconds