Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Copy paste not working with the new Juno + gmf (Copy paste of elements on the diagram files does not work withe new eclipse 4.2 juno and the gmf 1.6)
Copy paste not working with the new Juno + gmf [message #901434] Sun, 12 August 2012 10:23 Go to next message
sowmya Mising name is currently offline sowmya Mising nameFriend
Messages: 51
Registered: July 2009
Member
Hi
I am using our own copy paste implementation to copy the elements on the diagram as we wanted it to make a copy of the elements and also the model contents for that element. (GMF provides only copy by reference - makes a copy of the diagram and creates only a reference to the same model content)
To add my own commands I've used the same global-actions extensions for copy, paste, cut. - GlobalActionHandlerProvider

<ElementType class="myownimplementation">
<GlobalActionId actionId="cut"/>
<GlobalActionId actionId="copy"/>
</ElementType>

<ElementType class="org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart">
<GlobalActionId actionId="paste"/>
</ElementType>


The feature was working fine with Eclipse 3.7.1 and the latest gmf installed through the update site (gmf 1.5). But with the new version of Eclipse 4.2 Juno and the latest version of gmf (gmf 1.6) installed through the update site this feature does not seem to work any more. The copy by reference provided by gmf also does not seem to work. On performing copy paste of the elements on the diagram, the editor is marked dirty but there are no changes on the editor and no changes in the model as well.
Update site details : From the eclipse help menu -> Install new Software
In the Install window opened select for field Work With : All Available Sites -> Modelling -> Graphical Modeling Runtime SDK
Is there any additional steps to be performed in order to get the copy paste working on the new version of eclipse and gmf. Is anybody else also facing this issue ?
Any kind of suggestions would be helpful. Thanks .





Re: Copy paste not working with the new Juno + gmf [message #949825 is a reply to message #901434] Fri, 19 October 2012 10:35 Go to previous message
Boian tomov is currently offline Boian tomovFriend
Messages: 2
Registered: October 2012
Junior Member
It seems that this is a internal GMF problem, and is already reported under:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=390022

Regards,
Boian
Previous Topic:Errors in generated code for tutorial1
Next Topic:Error when importing the GMF source projects
Goto Forum:
  


Current Time: Sun Dec 21 06:22:46 GMT 2014

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

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