Skip to main content



      Home
Home » Eclipse Projects » Sirius » The problem with the commands Copy / Paste
The problem with the commands Copy / Paste [message #1745030] Tue, 04 October 2016 06:33
Eclipse UserFriend
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
Previous Topic:[AQL] Change Context Back
Next Topic:aql:eAllContents(packageName::eClassName)
Goto Forum:
  


Current Time: Sat Mar 15 17:53:35 EDT 2025

Powered by FUDForum. Page generated in 0.03091 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top