Bug 179948 - [RulersGrid] DBCS 3.3 - Logic Diagram Ruler and Grid setting in Preference doesn't work
Summary: [RulersGrid] DBCS 3.3 - Logic Diagram Ruler and Grid setting in Preference do...
Status: NEW
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 normal
Target Milestone: 2.1   Edit
Assignee: Carson Li CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-29 05:22 EDT by Geoffrey Hung CLA
Modified: 2010-07-19 12:26 EDT (History)
5 users (show)

See Also:


Attachments
Logic diagram setting in Preference doesn't work (46.21 KB, image/gif)
2007-03-29 05:24 EDT, Geoffrey Hung CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Geoffrey Hung CLA 2007-03-29 05:22:53 EDT
Memo		
Product Build#: Eclipse I20070306 + GMF-sdk-2.0M5uh
Platform/Version : ALL
Language: KO, TR, SC, TC
Releated Test Case #:  10 GMF - 4 DIAGRAM TEST CASES - ENTERING OF MEASUREMENT DATA
Same problem in English: YES
JVM:                  IBM JRE 5.0 SR4

===== DEFECT DESCRIPTION =====
1. Setting made on Diagram Property View for Ruler & Grid -> Grid Spacing does not reflect to the same settings
    at Window -> Preference -> Logic Diagrams -> Rulers and Grid.
2. It seems that the setting for Logic Diagrams in Preference doesn't work.
3. We can reproduce same issue in English platform

===== STEPS TO RECREATE =====
1. Create a simple project in the workspace
2. Go to File à New à Examples à GMF (Graphical Modeling Framework) à Geoshape Diagram and hit “Next.”
3. Go ahead and create an empty model file (to be used for the next test case).
4. Create a note in the geoshapes editor by dragging the note icon from the palette 
    on the right hand side to the drawing surface (under the zoom tool and above Geometric Shapes drawer).
5. Enter some strings in it.
6. Select the diagram surface and right click to display context menu and choose “Show Properties View”.
7. Navigate to the “Rulers and Grid” tab and enter numeric data for measurement field in “Grid Spacing”.  
    The measurement unit for that field is based on the “Ruler Units” field.
8. Go to preferences page for “Rulers and Grid” by choosing Window à Preferences. 
    Verify values for Grid spacing under Logic Diagrams à Rulers and Grid.  

===== EXPECTED RESULT =====
Setting made on Property View for Ruler & Grid -> Grid Spacing should the same as the settings
at Window -> Preference -> Logic Diagrams -> Rulers and Grid.
Comment 1 Geoffrey Hung CLA 2007-03-29 05:24:12 EDT
Created attachment 62363 [details]
Logic diagram setting in Preference doesn't work

Please check attached image file for reference
Comment 2 Kit Lo CLA 2007-03-30 00:45:00 EDT
Geoffrey, the "Preferences" settings are like the default settings for all plugins in Eclipse. Changing the property value of the currect selected object should not change the settings in the "Preferences". Therefore, the reported problem is invalid.

However, I tried changing the "Logic Diagrams>Rulers and Grid>Grid Spacing" setting to 0.5 like Geoffrey did, and then created a new Geoshape Diagram, and expected to see the new setting to show up in the properties view. But, it was still using the old Grid Spacing setting of 0.125 before my change. The GMF team should take a look at this problem.
Comment 3 Carson Li CLA 2007-10-10 09:57:42 EDT
Kit Lo is correct. The initial bug reported is not a problem because the preference page is to act like a standard for newly created diagrams. It is not to be synchronized after the value in the properties view has been modified. Therefore, the logic here is correct and the program is working to be expected. 

(In reply to comment #2)
 
> However, I tried changing the "Logic Diagrams>Rulers and Grid>Grid Spacing"
> setting to 0.5 like Geoffrey did, and then created a new Geoshape Diagram, and
> expected to see the new setting to show up in the properties view. But, it was
> still using the old Grid Spacing setting of 0.125 before my change. The GMF
> team should take a look at this problem.
> 

I was unable to produce the problem after changing the grid spacing in the preferences page and creating three new logic diagrams. Tried variations of pressing "apply", "ok", and saving the current diagram. 
Comment 4 Eclipse Webmaster CLA 2010-07-19 12:26:07 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime Diagram was the original product and component for this bug