Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Copy/Paste
Copy/Paste [message #76030] Wed, 08 November 2006 22:14 Go to next message
Eclipse UserFriend
Originally posted by: jr.joergreuter.ch

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
Re: Copy/Paste [message #76622 is a reply to message #76030] Fri, 10 November 2006 14:51 Go to previous messageGo to next message
Cherie Revells is currently offline Cherie RevellsFriend
Messages: 299
Registered: July 2009
Senior Member
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
>
>
Re: Copy/Paste [message #76747 is a reply to message #76622] Fri, 10 November 2006 16:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jr.joergreuter.ch

Thanks Cherie,

yes, I use a generated editor and it seems that it only supports semantic
copy of Top Level Nodes on the Canvas level. I will follow your advice and
dig into to logic example.

Regards
J
Re: Copy/Paste [message #77016 is a reply to message #76622] Mon, 13 November 2006 10:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jr.joergreuter.ch

Hello Cherie,

it seems that clipboard support works also for the generated code, but only
when using one single file for the model and the diagram.

I wonder if a fix of this is scheduled?

best regards
J
Re: Copy/Paste [message #77196 is a reply to message #77016] Mon, 13 November 2006 16:03 Go to previous message
Yves YANG is currently offline Yves YANGFriend
Messages: 688
Registered: July 2009
Senior Member
Hi,

We have noticed the same issue. I have reported in gugzilla:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=164334

Yves YANG
---
eUML2 + eBPMN: Soyatec
---

"Joerg Reuter" <jr@joergreuter.ch> wrote in message
news:ej9hao$ssa$1@utils.eclipse.org...
> Hello Cherie,
>
> it seems that clipboard support works also for the generated code, but
> only when using one single file for the model and the diagram.
>
> I wonder if a fix of this is scheduled?
>
> best regards
> J
Previous Topic:Node Labels in GMF
Next Topic:Need programmatic access to ArrangeAction
Goto Forum:
  


Current Time: Fri Aug 16 16:09:03 GMT 2024

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

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

Back to the top