Skip to main content

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 04:25 Go to next message
Isuru Udana is currently offline Isuru UdanaFriend
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 12:16 Go to previous message
Matthias M. is currently offline Matthias M.Friend
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

Previous Topic:ColorDialog and Wrong Colors
Next Topic:SelectionHandlesEditPolicy
Goto Forum:

Current Time: Mon May 21 01:36:13 GMT 2018

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

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

Back to the top