Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328838

Summary: Default size of GMF element not saved
Product: [Modeling] GMF-Runtime Reporter: Yu Li <liyu2709>
Component: GeneralAssignee: Project Inbox <gmf-runtime-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: orgler
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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 :-(