[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Copy/Paste

Hello Jörg,

There is copy/paste support in GMF. See org.eclipse.gmf.runtime.emf.clipboard.core. Copy/paste works in the GMF Logic Diagram Example. If you put breakpoints in the CopyOperation and PasteOperation classes and try copy/paste in the Logic Diagram Example you will see how this works with the model objects in the Logic Diagram.

Are you using a generated diagram editor? I don't think copy/paste works by default in the generated editors and I am not sure if there are issues with getting it working in the case of a generated diagram editor.

Regards,
Cherie

Joerg Reuter wrote:
Hi,

I wrote a GMF Diagram Editor with a Top Level Edit Part and an internal label. When I use Copy/Paste a copy of the graphical node and its children is created, but not the corresponding model elements.

Do I have to implement copy/paste using the EMF Clipboard support on my own or ist there something provided by GMF.

Thanks
Jörg