Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » copy container element as well as children element
copy container element as well as children element [message #200079] Mon, 04 August 2008 07:19 Go to next message
Eclipse UserFriend
Hello,
I wonder if it's available to copy and paste a container element as well
as its children element which reside in its compartment by copy command or
Ctrl+C7V?If available How to implement this?



Many thanks!


ye
Re: copy container element as well as children element [message #200247 is a reply to message #200079] Tue, 05 August 2008 00:25 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ye,

At least for diagram partitioning, this already works for me, if you
drag an existing element and hold down the Ctrl key it should clone the
element along with its children.

Jevon

Ye Liu wrote:
> Hello,
> I wonder if it's available to copy and paste a container element as
> well as its children element which reside in its compartment by copy
> command or Ctrl+C7V?If available How to implement this?
>
>
>
> Many thanks!
>
>
> ye
>
Re: copy container element as well as children element [message #200277 is a reply to message #200247] Tue, 05 August 2008 02:50 Go to previous messageGo to next message
Eclipse UserFriend
Hello Jevon,
Yes ,according to your ctrl+ drag,it can copy.But the properties such as
name of the copied element as well as its children can't be changed.Do you
find this drawback?How did you solve it?


Many thanks!


Ye
Re: copy container element as well as children element [message #200644 is a reply to message #200277] Tue, 05 August 2008 23:52 Go to previous messageGo to next message
Eclipse UserFriend
Yes, after some more investigation I realised I have that same problem.
You could try the copy and paste example in the documentation:

http://help.eclipse.org/help32/topic/org.eclipse.gmf.doc/tut orials/msl/clipboardTutorial.html

Can you let me know if this works?

Thanks
Jevon

Ye Liu wrote:
> Hello Jevon,
> Yes ,according to your ctrl+ drag,it can copy.But the properties such
> as name of the copied element as well as its children can't be
> changed.Do you find this drawback?How did you solve it?
>
>
> Many thanks!
>
>
> Ye
>
Re: copy container element as well as children element [message #200828 is a reply to message #200644] Wed, 06 August 2008 08:38 Go to previous message
Eclipse UserFriend
Hello,
Sure, but it takes time.


ye
Previous Topic:Custom Connection Decoration, rotation
Next Topic:Launching my Diagram code without as an individual application
Goto Forum:
  


Current Time: Thu Jun 05 16:58:49 EDT 2025

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

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

Back to the top