GEF in RCP [short question] [message #242894] |
Tue, 13 May 2008 05:17  |
Eclipse User |
|
|
|
Originally posted by: bassman.gmx.at
Hi,
Do I have to integrate a GEF-Editor (extending GraphicalEditorWithPalette) in RCP as a RDP-Editor or is it possible to add it as a view?
Thank you,
George
|
|
|
|
|
|
|
|
Re: GEF in RCP [short question] [message #243220 is a reply to message #243210] |
Thu, 29 May 2008 04:25  |
Eclipse User |
|
|
|
Originally posted by: bassman.gmx.at
>What exactly is the problem you are facing?
Well: I have an existing RCP-Project. It contains a lot of views. To expand this project, I builded an editor with gef. The editor is just a small part of the whole project, and I want to add it as a plugin.
In the plugin.xml of MyEditor I added the following extensions:
1. an org.eclipse.ui.editors-extension for MyEditor
2. an org.eclipse.ui.actionSets-extension for adding an icon and a call action (because the MyEditor is not visible from startup)
run() of the action:
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().openEditor(input, MyEditor.ID);
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().showView(IPageLayout.ID_PROP_SHEET);
I need to open the properties-view (because it's not open).
This all works, but it looks awful an dwhen i cloase MyEditor, the editor is still visible and the properties-view too.
My problems with this:
I want MyEditor as a view, because it more easy to handle (position, visible, etc.) (I think so, out of an unadvanced perspective)
I want the property sheet to be closed automatically with MyEditor
br,
Georg
|
|
|
Powered by
FUDForum. Page generated in 0.03157 seconds