Home » Modeling » EMF » [TENEO & GMF] Copy/Paste not working with Semantic Model in Teneo
|
Re: [TENEO & GMF] Copy/Paste not working with Semantic Model in Teneo [message #502322 is a reply to message #502242] |
Mon, 07 December 2009 16:53 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Christophe,
I would need some more information to say something, like do you see an exception (I guess not otherwise you would have
mentioned it). Is certain code not executed which you expect to be executed?
Maybe this is related:
http://www.elver.org/hibernate/hibernate_details.html#cutpas te
gr. Martin
Christophe Bouhier wrote:
> Hi,
>
> I wrote earlier about my attempts to have the semantic model of a GMF
> Diagram in Teneo and the Diagram model itself in a workspace file:
>
> To implement this, I use a standard GMF generated code and adapt the
> following:
>
> - Change the Creation Wizard, to use a Teneo URI like this:
> "hibernate://?dsname=netxstudio&query1=from Library"
>
> - Change the CreateDiagram method in xxxDiagramEditorUtil to use the
> existing model element from Teneo.
>
> So when following the wizard the following notational model gets
> created: (Notice the reference to a hibernate object for the
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
> xmlns:netxstudio="http://www.netxforge.com/netxstudio"
> xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation"
> xmi:id="_GpYsoOMoEd6Uqb70TsQlJA" type="template"
> name="default4.template_diagram" measurementUnit="Pixel">
> <styles xmi:type="notation:DiagramStyle"
> xmi:id="_GpYsoeMoEd6Uqb70TsQlJA"/>
> <element xmi:type="netxstudio:Library"
> href="hibernate://?dsname=netxstudio&query1=from
> Library#Library|id=1"/>
> </notation:Diagram>
>
> Now, I can edit the diagram, except copy/paste doesn't work. (I don't
> see any error messages). If I close the diagram file and re-open it,
> copy/paste works again.
>
>
> What would be the explanation for this?
>
> Thanks Christophe
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: [TENEO & GMF] Copy/Paste not working with Semantic Model in Teneo [message #502430 is a reply to message #502322] |
Tue, 08 December 2009 08:09 |
Christophe Bouhier Messages: 937 Registered: July 2009 |
Senior Member |
|
|
See inline response below:
Martin Taal wrote:
> Hi Christophe,
> I would need some more information to say something, like do you see an
> exception (I guess not otherwise you would have mentioned it). Is
> certain code not executed which you expect to be executed?
>
Well, I have been trying to debug the problem, with little success,
there are no exceptions thrown.
I compared the paste result for a GMF editor on a file semantic model
and from a teneo semantic model. The only difference I see is that the
Pasted element (Which is serialized to XMI by the clipboard functions)
is of type Shape vd being of type Node for the working GMF editor. So
there is a difference.
Also the editor is marked dirty, but the pasted View doesn't appear. (It
is also not created in the semantic model).
I know it's hard to resolve from this explanation, perhaps some advice
on where to trace and put a breakpoint, could help me. (Debugging
commands is really tough, I seem to be 35 levels deep in the execution
hiarchy!)
> Maybe this is related:
> http://www.elver.org/hibernate/hibernate_details.html#cutpas te
>
I am doing a paste, so it's not a containment move. Not sure this wouuld
help.
> gr. Martin
>
> Christophe Bouhier wrote:
>> Hi,
>>
>> I wrote earlier about my attempts to have the semantic model of a GMF
>> Diagram in Teneo and the Diagram model itself in a workspace file:
>>
>> To implement this, I use a standard GMF generated code and adapt the
>> following:
>>
>> - Change the Creation Wizard, to use a Teneo URI like this:
>> "hibernate://?dsname=netxstudio&query1=from Library"
>>
>> - Change the CreateDiagram method in xxxDiagramEditorUtil to use the
>> existing model element from Teneo.
>>
>> So when following the wizard the following notational model gets
>> created: (Notice the reference to a hibernate object for the
>>
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
>> xmlns:netxstudio="http://www.netxforge.com/netxstudio"
>> xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation"
>> xmi:id="_GpYsoOMoEd6Uqb70TsQlJA" type="template"
>> name="default4.template_diagram" measurementUnit="Pixel">
>> <styles xmi:type="notation:DiagramStyle"
>> xmi:id="_GpYsoeMoEd6Uqb70TsQlJA"/>
>> <element xmi:type="netxstudio:Library"
>> href="hibernate://?dsname=netxstudio&query1=from
>> Library#Library|id=1"/>
>> </notation:Diagram>
>>
>> Now, I can edit the diagram, except copy/paste doesn't work. (I don't
>> see any error messages). If I close the diagram file and re-open it,
>> copy/paste works again.
>>
>>
>> What would be the explanation for this?
>>
>> Thanks Christophe
>
>
|
|
|
Re: [TENEO & GMF] Copy/Paste not working with Semantic Model in Teneo [message #502436 is a reply to message #502430] |
Tue, 08 December 2009 08:34 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Christophe,
I am sorry but I am afraid that I can't really help out with this :-(. I think the only way is to dig even further than
the 35 levels you already mention...
gr. Martin
Christophe Bouhier wrote:
> See inline response below:
>
> Martin Taal wrote:
>> Hi Christophe,
>> I would need some more information to say something, like do you see
>> an exception (I guess not otherwise you would have mentioned it). Is
>> certain code not executed which you expect to be executed?
>>
> Well, I have been trying to debug the problem, with little success,
> there are no exceptions thrown.
>
> I compared the paste result for a GMF editor on a file semantic model
> and from a teneo semantic model. The only difference I see is that the
> Pasted element (Which is serialized to XMI by the clipboard functions)
> is of type Shape vd being of type Node for the working GMF editor. So
> there is a difference.
>
> Also the editor is marked dirty, but the pasted View doesn't appear. (It
> is also not created in the semantic model).
>
> I know it's hard to resolve from this explanation, perhaps some advice
> on where to trace and put a breakpoint, could help me. (Debugging
> commands is really tough, I seem to be 35 levels deep in the execution
> hiarchy!)
>
>
>> Maybe this is related:
>> http://www.elver.org/hibernate/hibernate_details.html#cutpas te
>>
> I am doing a paste, so it's not a containment move. Not sure this wouuld
> help.
>
>
>> gr. Martin
>>
>> Christophe Bouhier wrote:
>>> Hi,
>>>
>>> I wrote earlier about my attempts to have the semantic model of a GMF
>>> Diagram in Teneo and the Diagram model itself in a workspace file:
>>>
>>> To implement this, I use a standard GMF generated code and adapt the
>>> following:
>>>
>>> - Change the Creation Wizard, to use a Teneo URI like this:
>>> "hibernate://?dsname=netxstudio&query1=from Library"
>>>
>>> - Change the CreateDiagram method in xxxDiagramEditorUtil to use the
>>> existing model element from Teneo.
>>>
>>> So when following the wizard the following notational model gets
>>> created: (Notice the reference to a hibernate object for the
>>>
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <notation:Diagram xmi:version="2.0"
>>> xmlns:xmi="http://www.omg.org/XMI"
>>> xmlns:netxstudio="http://www.netxforge.com/netxstudio"
>>> xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation"
>>> xmi:id="_GpYsoOMoEd6Uqb70TsQlJA" type="template"
>>> name="default4.template_diagram" measurementUnit="Pixel">
>>> <styles xmi:type="notation:DiagramStyle"
>>> xmi:id="_GpYsoeMoEd6Uqb70TsQlJA"/>
>>> <element xmi:type="netxstudio:Library"
>>> href="hibernate://?dsname=netxstudio&query1=from
>>> Library#Library|id=1"/>
>>> </notation:Diagram>
>>>
>>> Now, I can edit the diagram, except copy/paste doesn't work. (I don't
>>> see any error messages). If I close the diagram file and re-open it,
>>> copy/paste works again.
>>>
>>>
>>> What would be the explanation for this?
>>>
>>> Thanks Christophe
>>
>>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Goto Forum:
Current Time: Thu Sep 26 08:12:04 GMT 2024
Powered by FUDForum. Page generated in 0.03307 seconds
|