The problem with the commands Copy / Paste [message #1745030] |
Tue, 04 October 2016 06:33 |
Eclipse User |
|
|
|
Hi,
I have a question about a nonfunctional commands Copy / Paste.
I implemented its own editor for opening diagrams (a class that extends AbstractSpecificDDiagramEditor).
I have also added Extension org.eclipse.gmf.runtime.common.ui.services.action.globalActionHandlerProviders to the plugin.xml.
See the code below
<extension point="org.eclipse.gmf.runtime.common.ui.services.action.globalActionHandlerProviders">
<GlobalActionHandlerProvider
class="org.eclipse.gmf.runtime.diagram.ui.providers.DiagramGlobalActionHandlerProvider"
id="SiriusPresentation2">
<Priority name="High"/>
<ViewId id="com.ge.eufo.processDesigner.design.GraphicalProcessEditor">
<ElementType
class="org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart">
<GlobalActionId actionId="delete"/>
<GlobalActionId actionId="save"/>
<GlobalActionId actionId="copy"/>
<GlobalActionId actionId="paste"/>
<GlobalActionId actionId="cut"/>
</ElementType>
<ElementType
class="org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart">
<GlobalActionId actionId="save"/>
<GlobalActionId actionId="copy"/>
<GlobalActionId actionId="paste"/>
<GlobalActionId actionId="cut"/>
</ElementType>
</ViewId>
</GlobalActionHandlerProvider>
</extension>
Now work commands delete, save and cut.
Commands copy and paste are available (enabled), but not to copy anything. After the command to paste the copied element not inserted.
Please any advice which could be a problem.
Thank you very much.
Martin
|
|
|
Powered by
FUDForum. Page generated in 0.03091 seconds