Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Insert Images To Editor
Insert Images To Editor [message #521874] Fri, 19 March 2010 00:25 Go to next message
Isuru Udana is currently offline Isuru Udana
Messages: 128
Registered: February 2010
Senior Member
I want to place images in the editor by selecting from a palette which contains list of images. How can I do this? I can do this for standard shapes. But don't know how to do this for images.
Re: Insert Images To Editor [message #521948 is a reply to message #521874] Fri, 19 March 2010 08:16 Go to previous message
Matthias M. is currently offline Matthias M.
Messages: 27
Registered: July 2009
Junior Member

Hi Isuru,

just return a ImageShapeFigure in the createFigure() method of your (standard shape) EditPart.
You will have to pass an swt.Image object to the constructor which you can create with an InputStream...

Best Regards
Matthias


Previous Topic:[ZEST] Draw a Rectangle in the Background
Next Topic:Tabbed Properties View
Goto Forum:
  


Current Time: Fri Apr 18 10:07:59 EDT 2014

Powered by FUDForum. Page generated in 0.01476 seconds