Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Copy/Paste building blocks of a model file
Copy/Paste building blocks of a model file [message #76992] Mon, 13 November 2006 04:35 Go to next message
Balraj Kannan is currently offline Balraj KannanFriend
Messages: 28
Registered: July 2009
Junior Member
Hi,

Does GMf support Copy/pasting of blocks that make up the diagram file. I
see an option of copy when I use this and try to paste nothing happens. Do
I need to take care of it programmatically?

Can you please suggest me on this.

Thanks & Best Regards
Balraj
Re: Copy/Paste building blocks of a model file [message #77012 is a reply to message #76992] Mon, 13 November 2006 10:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jr.joergreuter.ch

High Balraj,

I'm stuck with the same issue.

It seems that clipboard support works well when you use a single file for
model and diagram. If you you use two files the Xerxes Parser crashes when
loading the diagram during the paste operation. This could be the reason why
nothing happens.

It seems to me that the entire clipboard package only supports a single file
for clipboard operation. On the other hand this clipboard support is quite
advanced in taking care of differenciating exactly what to copy and what
not. So it would be not an easy task to reach the same level of
sophistication when you start an own implementation.

Regards
J
Re: Copy/Paste building blocks of a model file [message #77181 is a reply to message #77012] Mon, 13 November 2006 15:59 Go to previous messageGo to next 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:ej9h6j$s47$1@utils.eclipse.org...
> High Balraj,
>
> I'm stuck with the same issue.
>
> It seems that clipboard support works well when you use a single file for
> model and diagram. If you you use two files the Xerxes Parser crashes when
> loading the diagram during the paste operation. This could be the reason
> why nothing happens.
>
> It seems to me that the entire clipboard package only supports a single
> file for clipboard operation. On the other hand this clipboard support is
> quite advanced in taking care of differenciating exactly what to copy and
> what not. So it would be not an easy task to reach the same level of
> sophistication when you start an own implementation.
>
> Regards
> J
Re: Copy/Paste building blocks of a model file [message #77295 is a reply to message #77181] Tue, 14 November 2006 05:52 Go to previous messageGo to next message
Balraj Kannan is currently offline Balraj KannanFriend
Messages: 28
Registered: July 2009
Junior Member
Thanks Yves YANG and Jörg.

Have you guys been able to find some work around for this?

Regards
Balraj
Re: Copy/Paste building blocks of a model file [message #77327 is a reply to message #77295] Tue, 14 November 2006 07:39 Go to previous messageGo to next message
Alexander Haag is currently offline Alexander HaagFriend
Messages: 119
Registered: July 2009
Senior Member
Hi,

I'm just about to do the same issue. I want the copy/paste operation to
work between different diagrams (each with its own diagramfile; some of
the diagrammodels could be in the same modelfile, but they don't have to).

Maybe we could find a solution together!!
I'd be pleased if you all could post any updates here so that the others
could participate or help.

I'll post my updates, if I got anything.

Greets Alex Haag

Balraj Kannan wrote:
>
>
> Thanks Yves YANG and Jörg.
> Have you guys been able to find some work around for this?
> Regards
> Balraj
>
Re: Copy/Paste building blocks of a model file [message #78039 is a reply to message #77327] Wed, 15 November 2006 22:08 Go to previous message
Eclipse UserFriend
Originally posted by: jr.joergreuter.ch

I use now a different approach:

I keep diagram and model in the same file and have installed a builder to
generate "pure" model files of different kinds. This suits my needs very
well.

But there is also a limitation in the "single file solution". Clipboard
works only on the canvas level. So if you have nested figures and
compartments it does not work when you copy an inner figure and paste it
elsewhere. But this could be still a problem with my implementation.
Regards
J
Previous Topic:Refactoring of EMF resources on renaming/moving corresponding IFile
Next Topic:Position of external labels inside a compartment
Goto Forum:
  


Current Time: Sat Nov 09 05:52:09 GMT 2024

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

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

Back to the top