[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Re: Global Actions in Multipage Editor with a Diagram Editor
|
Hello Arne,
I have the following lines in plugin.xml of the .diagram plugin:
<extension point="org.eclipse.gmf.runtime.common.ui.services.action.globalActionHandlerProviders">
<?gmfgen generated="false"?>
<GlobalActionHandlerProvider
class="org.eclipse.gmf.runtime.diagram.ui.providers.DiagramGlobalActionHandlerProvider"
id="TopicMapPresentation">
<Priority name="Lowest"/>
<ViewId id="org.example.emfgmf.topicmap.presentation.TopicmapEditorID">
<ElementType class="org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart">
<GlobalActionId actionId="delete"/>
</ElementType>
<ElementType class="org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart">
<GlobalActionId actionId="save"/>
</ElementType>
</ViewId>
</GlobalActionHandlerProvider>
Note: specified <ViewId id="org.example.emfgmf.topicmap.presentation.TopicmapEditorID">
is an ID of the multipage editor (not a diagram one).
-----------------
Alex Shatalin