Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Problems with copy/paste
Problems with copy/paste [message #181253] Mon, 07 April 2008 16:00 Go to next message
Eclipse UserFriend
Originally posted by: mcervera.integranova.com

Hello.

I've seen loads of threads about the copy/paste issue but I still can't
seem to fix my problem. I've managed to be able to paste but I can't
copy (or cut) when the elements are not contained in my root element
(the diagram). If I select an element contained in any compartment
rather than the diagram the Cut and Copy options of the popup menu are
disabled... and of course crtl+x and crtl+c don't work.

Any advice??? It would be really appreciated.

Thanks in advance.

Mario.
Re: Problems with copy/paste [message #181329 is a reply to message #181253] Tue, 08 April 2008 08:06 Go to previous messageGo to next message
BLANC Philippe is currently offline BLANC PhilippeFriend
Messages: 89
Registered: July 2009
Member
Hi,
I have the same problem.
It could be very useful if somebody precisely explains how to implement
copy/paste for compartment.

Regards,
Philippe

Mario Cervera a écrit :
> Hello.
>
> I've seen loads of threads about the copy/paste issue but I still can't
> seem to fix my problem. I've managed to be able to paste but I can't
> copy (or cut) when the elements are not contained in my root element
> (the diagram). If I select an element contained in any compartment
> rather than the diagram the Cut and Copy options of the popup menu are
> disabled... and of course crtl+x and crtl+c don't work.
>
> Any advice??? It would be really appreciated.
>
> Thanks in advance.
>
> Mario.
Re: Problems with copy/paste [message #181361 is a reply to message #181253] Tue, 08 April 2008 09:35 Go to previous message
BLANC Philippe is currently offline BLANC PhilippeFriend
Messages: 89
Registered: July 2009
Member
It seems that you can extends this extension point :

<extension
point="org.eclipse.gmf.runtime.emf.clipboard.core.clipboardSupport ">
<factory
class=" com.yourcompany.yourproject.clipboard.ClipboardSupportFactor y "
nsURI="http://www.eclipse.org/gmf/runtime/1.0.1/notation" priority="high">
</factory>
</extension>

And implements IClipboardSupportFactory to return a IClipboardSupport
instance.

But, if somebody has a source code example, it will be very helpful !

Regards,
Philippe

Mario Cervera a écrit :
> Hello.
>
> I've seen loads of threads about the copy/paste issue but I still can't
> seem to fix my problem. I've managed to be able to paste but I can't
> copy (or cut) when the elements are not contained in my root element
> (the diagram). If I select an element contained in any compartment
> rather than the diagram the Cut and Copy options of the popup menu are
> disabled... and of course crtl+x and crtl+c don't work.
>
> Any advice??? It would be really appreciated.
>
> Thanks in advance.
>
> Mario.
Previous Topic:line connection
Next Topic:Disable Modeling Assistant
Goto Forum:
  


Current Time: Thu Apr 25 11:16:20 GMT 2024

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

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

Back to the top