GEF in RCP [message #218789] |
Sat, 01 July 2006 11:33 |
Eclipse User |
|
|
|
Originally posted by: vedgunjan.yahoo.com
Hi Experts,
Im trying to lauch a GEF graphical editor in a RCP application.
I went thruough the link about GEF implementation adapted to RCP at:
http://www.eclipse.org/articles/Article-GEF-EMF/gef-emf.html
I downloaded the example and was able to run the application.
When i tried to open the editor it opened a dialog box and was loking for
*.shapes file in the file system.
When i looked in to the code , i found that it was using the following
approach ....
IWorkbenchPage page =window.get page().openEditor()
Now this method of the page object to open an editor take two inputs one
the EditorInput object and second the string object of HelloWorldEditor.
The editor input has to be some file on the local file system.
But in my case i dont have an input for the editor in the local file
system.
Is it possible to open the gef editor without the input path( IPath).
or the other scenario is can this path be initialised from DB value coming
from the backend.
I will be glad if any of the experts can guide me through this.
Thanks
Ved
|
|
|
|
Re: GEF in RCP [message #218806 is a reply to message #218797] |
Sun, 02 July 2006 05:13 |
Eclipse User |
|
|
|
Originally posted by: vedgunjan.yahoo.com
Thanks Josh for the reply.
If possible can u provide with snap shot of your classes, so that i can
take idea from it.
Or else any other example which is doing this...
thanks
ved
|
|
|
|
Re: GEF in RCP [message #219023 is a reply to message #218789] |
Thu, 06 July 2006 12:39 |
Eclipse User |
|
|
|
Originally posted by: lamont_gilbert.rigidsoftware.com
Ved Gunjan wrote:
> Hi Experts,
>
> Im trying to lauch a GEF graphical editor in a RCP application.
>
> I went thruough the link about GEF implementation adapted to RCP at:
> http://www.eclipse.org/articles/Article-GEF-EMF/gef-emf.html
>
>
>
> I downloaded the example and was able to run the application.
>
> When i tried to open the editor it opened a dialog box and was loking for
> *.shapes file in the file system.
>
> When i looked in to the code , i found that it was using the following
> approach ....
>
>
> IWorkbenchPage page =window.get page().openEditor()
> Now this method of the page object to open an editor take two inputs one
> the EditorInput object and second the string object of HelloWorldEditor.
>
> The editor input has to be some file on the local file system.
>
>
>
> But in my case i dont have an input for the editor in the local file
> system.
>
> Is it possible to open the gef editor without the input path( IPath).
>
If you are talking about the example editors then the answer is no. But you
can modify the example editor so it takes the type of input you want once
you understand how they work. OR you can make your own editor based on
what you learn from looking at the example editors and reading the
documentation.
I have an application that takes a custom IEditorInput I created that
actually holds a type of soft reference to a database that the editor uses
to get its contents. I havent put it on the web yet. Been playing games
too much to clean up my website...
> or the other scenario is can this path be initialised from DB value coming
> from the backend.
>
>
>
>
>
> I will be glad if any of the experts can guide me through this.
>
>
>
> Thanks
>
> Ved
--
Respectfully,
CL Gilbert
"Verily, verily, I say unto you, He that entereth not by the door() into the
sheepfold{}, but climbeth up some other *way, the same is a thief and a
robber."
|
|
|
Powered by
FUDForum. Page generated in 0.02982 seconds