|How to use GEF in RCP. [message #235237]
||Thu, 07 June 2007 10:17
Originally posted by: chaitannyam.yahoo.co.uk|
I wanted to use GEF in my RCP application and there was this link which showed how to do this.. but i couldn't figure out what the auther wanted to say ...
<b>"The conversion of the shapes example into an RCP-based application is a lot simpler than most people think. The problem stems from the setInput method of ShapesEditor expecting an IEditorInput, but the most familiar editor input people work with is IFileEditorInput. The problem with IFileEditorInput is that it belongs to the pesky org.eclipse.ui.ide plugin which is not an acceptable dependency for an RCP-based application. The solution to this problem is to simply create our own editor input, ShapesEditorInput which implements the IEditorInput interface via IPathEditorInput interface. Once this change is completed and the setInput method is properly changed in ShapesEditor to use ShapesEditorInput, we can now properly open a shapes editor. Note, the sole purpose of this example is to demonstrate how to get a GEF editor inside of an RCP application, it doesn't include support for various actions such as saving or wizards (I leave this for the reader to explore).
Here is the link www.eclipse.org/articles/Article-GEF-EMF/gef-emf.html
Anyways if anyone knows how to do it... please let me know the procedure.
Powered by FUDForum
. Page generated in 0.02010 seconds