[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.gef] Re: Editing capabilities with GEF in Eclipse View

valeri111 wrote:
Hi all,
Is it possible to create an Eclipse View with editing capabilities provided by GEF ( to act as editor but in a view )?



The outline view is a good candidate to start with, since gef provide a class to be embedded in the outline view (ContentOutlinePage). You can do anything you'd do with an editor with it. However, it need to be binded with an editor which will provide an instance of this class when asked for a IContentOutlinePage through getAdapter(Class). Nevertheless, it shows well that it is possible to create a view with editing capabilities.


Other then the outline view, I think it could be pretty easy since basically all you have to do is to set the control of the view with the control of the gef viewer. I've never done this though...

--
Pascal Gélinas | Software Developer
*Nu Echo Inc.*
http://www.nuecho.com/ | http://blog.nuecho.com/

*Because performance matters.*