Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to create an image viewer integrated to GMF-based editors(Image visualization)
How to create an image viewer integrated to GMF-based editors [message #644099] Thu, 09 December 2010 13:49
Tiago is currently offline TiagoFriend
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
Previous Topic:Diagram partitioning sharing an editing domain
Next Topic:Adding Existing Items During Creating (Create and Move)
Goto Forum:
  


Current Time: Thu Sep 19 07:04:14 GMT 2024

Powered by FUDForum. Page generated in 0.02839 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top