[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [gef-dev] Problems with Context Menu actions
|
GraphicalEditor is designed to be an
Editor, not a page of a multipage editor. Your actions are never
enabled because selectionChanged() on GraphicalEditor will never do anything.
It doesn't see itself as the active editor. Disabled actions
don't get added to the context menu generally.
I opened a bugzilla a while back requesting
that the platform UI team come up with a real way to compose workbench
parts. MultiPageEditor is a hack which requires modifications to
the editors being composed. CC yourself to:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=46207
-Randy
| "Riolobos Peris, Jesus"
<j.riolobos@xxxxxxxxxxxxxx>
Sent by: gef-dev-admin@xxxxxxxxxxx
07/15/2004 04:10 AM
Please respond to gef-dev
|
To:
"'gef-dev@xxxxxxxxxxx'" <gef-dev@xxxxxxxxxxx>
cc:
Subject:
[gef-dev] Problems with Context Menu
actions |
Hello,
I am developing a gef application, and my
main plugin is a Multi-editor page, that contains two pages (plugins too),
a GraphicalEditor and a XMLEditor.
The problem is when I load a input file, the
context menu actions associated to graphical editor page, never are showed.
If I load the graphical editor separately, it works ok, but not inside
of multi-editor.
I am trying modifying the contributor class
of each plugin (ActionBarContributor for graphical editor, MultiPageEditorActionBarContributor
for multi-page), but it is appear that is not involved in menu context
actions register process. This actions are registered in main class
of graphical editor (extends GraphicalEditorWithPalette), inside of method
"configureGraphicalViewer",
but when load this class from multi-editor,
this actions seems to be registered but are not shown.
Does any of you how to solve this problem?
Thanks in advance.