Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » GEF-RCP, how to launch an gef editor? (as text editor)
GEF-RCP, how to launch an gef editor? (as text editor) [message #206567] Wed, 04 January 2006 00:09 Go to next message
Eclipse UserFriend
Originally posted by: Vincent.Black.evhr.net

Hello, I have a question about GEF and RCP.
I have made the tutorial:

http://www13.plala.or.jp/observe/GEF/GEF_RCP.html

And i have try to integrate in an rcp template (rcp with one view template).
I have integrate all classes, all can compile, but I dont how to find
how to launch the GEF CLASS in an editor view. (when I click on an menu
action)

in this exemle, it's :
-> public class HelloWorldEditor extends GraphicalEditorWithPalette

Anybody have an idea ?
I don't have understand how the GEF can work with rcp.

Please help me. Thank you very much !

Sincerely,
Vinz
Re: - RESOLVED - [message #206781 is a reply to message #206567] Fri, 06 January 2006 16:24 Go to previous message
Eclipse UserFriend
Originally posted by: Vincent.Black.evhr.net

In fact it was very easy. You just define an ID in you graphical editor,
such as RCP View, and the you launch by this code :

try
{
workbenchWindow.getActivePage().openEditor(new EditorInput(), Editor.ID,
true);
}
catch (PartInitException e)
{
e.printStackTrace();
}

It was given in the RCP Shape Exemple on the eclipse website.
Previous Topic:GEF/EMF Training
Next Topic:Background image
Goto Forum:
  


Current Time: Fri Apr 26 08:15:58 GMT 2024

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

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

Back to the top