Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Link gets lost after save and reopen
Link gets lost after save and reopen [message #239356] Tue, 23 October 2007 13:31 Go to next message
Eclipse UserFriend
Originally posted by: axel.schroepfer.t-online.de

Hi all!

A have a problem with saving links. I guess it's a GEF issue. Using the
UML2 metamodel, I built an editor using GMF where a node A (of type
AddStructuralFeatureValueAction) references (type Property) a subnode of a
node B (type Classifier). This is visible as a link. When I save the
contents of the diagram, I get a corresponding file looking like this:

<?xml version="1.0" encoding="UTF-8"?>
<t0:Map xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:t0="http://task0" xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML">
<addStructuralFeatureValueActions
structuralFeature="#//@classifiers.0/age"/>
<classifiers xsi:type="uml:DataType" name="Person">
<ownedAttribute name="age"/>
</classifiers>
</t0:Map>

Unfortunatelly, after closing my diagram and reopening it, the link is not
there any longer. I found out, that the reference "#//@classifiers.0/age"
for the structuralFeature attribute is not evaluated correctly. When I
change it to "#//@classifiers.0/@ownedAttribute.0" manually, everything is
fine (until the next time I save it because that will be done the usual
way described).

So my question is, where can I change the saving procedure or where at
least can I modify the loading procedure to correct this? It seems to be a
bug, doesn't it?

Thanks for your help!

Axel
Re: Link gets lost after save and reopen [message #239360 is a reply to message #239356] Tue, 23 October 2007 13:40 Go to previous message
Eclipse UserFriend
Originally posted by: axel.schroepfer.t-online.de

I just found out, that the problem only occurs, when the attribute name of
the ownedAttribute is set. If this ain't the case, every works fine and
the reference is built up correctly (like the manual correction mentioned
in my first posting).
Previous Topic:To set bounds around a figure
Next Topic:Drawing and Scrolling questions
Goto Forum:
  


Current Time: Thu Apr 25 10:00:05 GMT 2024

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

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

Back to the top