GEF-RCP, how to launch an gef editor? (as text editor) [message #206567] |
Wed, 04 January 2006 00:09 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03309 seconds