Bug 328838 - Default size of GMF element not saved
Summary: Default size of GMF element not saved
Status: NEW
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-27 11:02 EDT by Yu Li CLA
Modified: 2011-02-02 05:40 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yu Li CLA 2010-10-27 11:02:47 EDT
Build Identifier: 20100917-0705

While creating a new element in GMF editor, the size of its view is set to (-1, -1), and its figure gets the default size, possibly according to preference settings. This figure size is, however, not saved in the diagram file, if the element is not resized after the creation. If (another) user then changes the default size (in preferences) and reopens the model, the size of the element's figure is set to the new default size, which differs from the (old default) size at the creation.

I think in most cases it is desired that figure size of an element can be saved persistently, although not resized after the creation.

Reproducible: Always

Steps to Reproduce:
1. Check out the mindmap example (org.eclipse.gmf.examples.mindmap,
org.eclipse.gmf.examples.mindmap.edit, and
org.eclipse.gmf.examples.mindmap.rcp.diagram) and run it.
2. Create a diagram, then a topic element, and save the diagram.
3. Open the .mmd file.
Comment 1 Johannes Michler CLA 2011-02-02 05:40:42 EST
Is there any news on this issue? This is quite disturbing for our RPC/GMF-Editor too :-(