How to use GEF in RCP. [message #235237] |
Thu, 07 June 2007 06:17  |
Eclipse User |
|
|
|
Originally posted by: chaitannyam.yahoo.co.uk
Hello everyone....
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).
"</b>
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.
|
|
|
|
|
|
|
Re: How to use GEF in RCP. [message #235449 is a reply to message #235237] |
Tue, 12 June 2007 10:58  |
Eclipse User |
|
|
|
Hi Chaitannya,
Check out the first Directed Graph Example (Digraph1) at
http://www.eclipse.org/gef/reference/digraph1.php#Digraph1Ap plication
Cheers...
Anthony
"chaitannya" <chaitannyam@yahoo.co.uk> wrote in message
news:719473005.1841181211492609.JavaMail.root@cp9.dzone.com...
> Hello everyone....
>
> 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).
>
> "</b>
>
> 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.08889 seconds