Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » A stubborn Cut + Paste problem
A stubborn Cut + Paste problem [message #118375] Wed, 11 April 2007 16:20 Go to next message
Eclipse UserFriend
Originally posted by: NOSPAM.xyz.com

Hello pals,
I have a simple little test model with one type of node whose
semantic element has one attribute.
After I cut and paste in the generated editor the new part is
in a wrong state. The symptoms:
1) Its figure is marked with a X inside a O in the upper-right corner :-)
2) The label of the new part is empty ( [] ) and is not editable
3) If I change the value of the attribute via the Properties View
the changes are not reflected in the label.
4) If I save the diagram and, the tree editor,
change the value of the attribute there, save and switch back
to the diagram editor - the new value is not reflected.

I tried to debug the state of the diagram but it seems ok,
the diagram edit part holds refs. to the right child edit parts,
which hold ref. to the right view model, which hold ref. to the right
semantic...

I found no info whatsoever about cut / paste problems.
Has anybody faced this before? Can you reproduce it?
Cheers,
Theo
Re: A stubborn Cut + Paste problem [message #118402 is a reply to message #118375] Wed, 11 April 2007 17:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: NOSPAM.xyz.com

One more thing : the semantic element of the pasted
edit part contains the default value of the attribute
( and this value can not be changed through the label) .
It seems to me that the semantic objects do not at all
get serialized together with the view when the edit part is cut.
The diagram is canonical ...
Is this a bug? haven't altered anything in the
generated editor...
Re: A stubborn Cut + Paste problem [message #118409 is a reply to message #118375] Wed, 11 April 2007 18:20 Go to previous messageGo to next message
Seweryn Niemiec is currently offline Seweryn NiemiecFriend
Messages: 80
Registered: July 2009
Member
Wed, 11 Apr 2007 12:20:54 -0400, Theo:

> Hello pals,
> I have a simple little test model with one type of node whose semantic
> element has one attribute.
> After I cut and paste in the generated editor the new part is in a wrong
> state. The symptoms:
[...]
> I found no info whatsoever about cut / paste problems. Has anybody faced
> this before? Can you reproduce it? Cheers, Theo

I'm not sure, but maybe you should turn on generation of UUIDs in semantic
model. I had strange problems with Copy&Paste and it helped me.

For more info check EMF documentation or this page:
http://serdom.szn.pl/ser/index.php/2007/03/05/how-to-enable- uuid-in-emf-generated-model-to-get-copypaste-working/

Regards,
Seweryn Niemiec
Re: A stubborn Cut + Paste problem [message #118413 is a reply to message #118409] Wed, 11 April 2007 19:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: NOSPAM.xyz.com

Hi Seweryn,
I already applied your tip described there, without
the UUIDs Copy & Paste doesn't work at all.
What I'm talking about here is something different.
The funny part is that it is so obvious, many people
should have seen it ...

"Seweryn Niemiec" <ser@man.szczecin.pl> wrote in message
news:pan.2007.04.11.18.19.54.896002@man.szczecin.pl...
> Wed, 11 Apr 2007 12:20:54 -0400, Theo:
>
>> Hello pals,
>> I have a simple little test model with one type of node whose semantic
>> element has one attribute.
>> After I cut and paste in the generated editor the new part is in a wrong
>> state. The symptoms:
> [...]
>> I found no info whatsoever about cut / paste problems. Has anybody faced
>> this before? Can you reproduce it? Cheers, Theo
>
> I'm not sure, but maybe you should turn on generation of UUIDs in semantic
> model. I had strange problems with Copy&Paste and it helped me.
>
> For more info check EMF documentation or this page:
> http://serdom.szn.pl/ser/index.php/2007/03/05/how-to-enable- uuid-in-emf-generated-model-to-get-copypaste-working/
>
> Regards,
> Seweryn Niemiec
>
Re: A stubborn Cut + Paste problem [message #118724 is a reply to message #118402] Thu, 12 April 2007 12:08 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Theo,

You can try to reproduce this problem in Ecore diagram editor and if it will
be there then you can submitt a request with steps to repeat.

-----------------
Alex Shatalin
Re: A stubborn Cut + Paste problem [message #216707 is a reply to message #118413] Thu, 29 January 2009 16:08 Go to previous message
Eclipse UserFriend
Originally posted by: jxtamarc.gmail.com

Hi Theo,

I've just found myself involved with the same cut and paste problem, and
as you say the funny thing is that it looks like no one ever saw this ...
bug?? or whatever...

It is kind of weird that I'm being able to cut anything from a diagram
and paste it on another canvas, but when I try to repeat this process on
the same canvas it shows exactly as you describe.

the question is:

did anyone find a solution to this????

Thank you!

El dia Wed, 11 Apr 2007 15:12:59 -0400, en/na Theo va escriure:

> Hi Seweryn,
> I already applied your tip described there, without the UUIDs Copy &
> Paste doesn't work at all. What I'm talking about here is something
> different. The funny part is that it is so obvious, many people should
> have seen it ...
>
> "Seweryn Niemiec" <ser@man.szczecin.pl> wrote in message
> news:pan.2007.04.11.18.19.54.896002@man.szczecin.pl...
>> Wed, 11 Apr 2007 12:20:54 -0400, Theo:
>>
>>> Hello pals,
>>> I have a simple little test model with one type of node whose semantic
>>> element has one attribute.
>>> After I cut and paste in the generated editor the new part is in a
>>> wrong state. The symptoms:
>> [...]
>>> I found no info whatsoever about cut / paste problems. Has anybody
>>> faced this before? Can you reproduce it? Cheers, Theo
>>
>> I'm not sure, but maybe you should turn on generation of UUIDs in
>> semantic model. I had strange problems with Copy&Paste and it helped
>> me.
>>
>> For more info check EMF documentation or this page:
>> http://serdom.szn.pl/ser/index.php/2007/03/05/how-to-enable- uuid-in-
emf-generated-model-to-get-copypaste-working/
>>
>> Regards,
>> Seweryn Niemiec
>>
Previous Topic:Hide 'Input methods' in Context Menu
Next Topic:Update existing diagrams after model change
Goto Forum:
  


Current Time: Thu Apr 25 21:56:33 GMT 2024

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

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

Back to the top