Community
Participate
Working Groups
GMF/Eclipse Version: The one given on the CD during the EclipseCon Tutorial. If the user selects the GridLayout as the LayoutManager for a particular figure on the .gmfgraph model, the generated code refers to "org.eclipse.gmf.internal.codegen.draw2d.GridLayout()". The steps required to reproduce this bug are: 1- Create a Graph model that contains GridLayout. 2- Do the Mapping and Transformation to .gmfgen. 3- Generate the code. The Error on my code looks like this: org.eclipse.gmf.internal.codegen.draw2d.GridLayout myGenLayoutManager = new org.eclipse.gmf.internal.codegen.draw2d.GridLayout(); myGenLayoutManager.numColumns = 3; myGenLayoutManager.makeColumnsEqualWidth = true;
Created attachment 38601 [details] Fixes the subj
The addition of SWT-like GridLayout was propoesed for GEF 3.1 release but dropped/postponed. While we do not have "official" layout implementation, I may only recommend to use the patch which contains missed GridLayout implementation by Asym Ullah.
Those using GridLayout in GMF 1.0 should apply the patch. Moving to 2.0, waiting for https://bugs.eclipse.org/bugs/show_bug.cgi?id=71684 to get closed.
Created attachment 45523 [details] Corrected patch that fixes the subj, Corrected issues: 1. Set of alignment constants now mathes the set of constants from gmfgraph model. Say, <code>GridLayoutData.BEGINNING = SWT.BEGINNING - 1 = gmf.Alignment.BEGINNING</code>. 2. Repackaged and renamed according to the naming in the generated code
Created attachment 45524 [details] Fixed SWT constants usage in the GridLayout code Layout manager code now uses set of the constants consistent with constants defined in GridLayoutData
Please help us to know : How to use the patch "Fixed SWT constants usage in the GridLayout code" ???.
(In reply to comment #3) Bug #71684 has been resolved
Created attachment 64018 [details] With 71684 fixed, it is possible to add tests for GL in GMF
reviewed, few NPEs fixed and delivered into HEAD.
[target cleanup] 2.0 M7 was the original target milestone for this bug
[GMF Restructure] Bug 319140 : product GMF and component Generation was the original product and component for this bug