Problems with saving the diagram and with deleting links [message #168368] |
Wed, 16 January 2008 06:25  |
Eclipse User |
|
|
|
Hi all,
Ive been working with GMF to make an application for several months but
Im not quite familiar with the tool. Im having 2 problems with the
diagram editor I got.
The first one is that when you save a diagram or you open a diagram and
you modify the properties of an item, without touching the graphic
display of the diagram, Eclipse doesnt let you save the diagram (as if
you didnt make a modification), but if you move something in the graphic
editor, you get to save the diagram and the changes to the properties.
The second problem is about deleting links when you delete their node
target. My problem with this is quite strange, if you delete the node
target, the first time you do it will delete the node and the link will
disappear from the graphic editor, but when you try to save the diagram,
you get an error informing that there is a link with no target in the
diagram. If you close the diagram without saving and then open it again,
you can delete the target node and the link will be deleted too, and it
will work fine for any diagram until you close eclipse. So my problem
basicly, is that first time you try to delete the node and get the link
deleted.
For more information, Im using Eclipse 3.3.1.1 and GMF 2.0.1. Sorry if
any of these questions has been answered before but I couldnt find the
answer.
Kind regards,
|
|
|
Re: Problems with saving the diagram and with deleting links [message #168384 is a reply to message #168368] |
Wed, 16 January 2008 06:49  |
Eclipse User |
|
|
|
Originally posted by: external.deyaa.adranale.de.bosch.com
Álvaro Navas wrote:
> Hi all,
> The first one is that when you save a diagram or you open a diagram and
> you modify the properties of an item, without touching the graphic
> display of the diagram, Eclipse doesnt let you save the diagram (as if
> you didnt make a modification), but if you move something in the graphic
> editor, you get to save the diagram and the changes to the properties.
you have to add the following line :
view.eResource().setModified(true);
to your XXXPropertyDescriptor.doCreateEditor() (override this method if
you can't find it). Make sure that the value of the property really changed
> For more information, Im using Eclipse 3.3.1.1 and GMF 2.0.1.
I am using GMF 1.0.2, but I think it is the same solution.
hope this will help u!
Deyaa
|
|
|
Powered by
FUDForum. Page generated in 0.04622 seconds