Community
Participate
Working Groups
This problem is specific to Linux, there is no problem on Windows. Currently, it is not possible to display the grid on new version of Linux: * KO on Ubuntu 13.10, Ubuntu 14.04 and on OpenSuse 13.1 * OK on Ubuntu 12.04, Xubuntu 12.10 and on Debian 7.5 There is also the same problem on the GMF examples, steps to reproduce: * Install a new Eclipse 4.4 M7 SDK * Install GMF Examples * Create a new Project * Create a new Logic diagram * In Properties view, enable "Show Grid" * OK: The grid is visible * Create a new Geoshape diagram * In Properties view, enable "Show Grid" KO: The grid is not visible (even by modifying other properties: Color, Style, Ruler Units and Grid Spacing) The different is on the measurementUnit property of notation:Diagram ("Pixel" for Geoshape, "Himetric" for Logic). On Sirius, I try to modify the method org.eclipse.sirius.diagram.ui.internal.view.factories.DDiagramViewFactory.getMeasurementUnit() to return MeasurementUnit.HIMETRIC_LITERAL instead of MeasurementUnit.PIXEL_LITERAL. The grid appears on the new diagram but there are several problems: * the coordinates and size are not the same in aird file (50 pixels equals to 1296 ???) * the label are not displayed exactly at the same place * it is not possible to create a node with an initial size (click and drag with the mouse during creation) * export of diagram is impossible, the error message "...could no be exported because thay are too large..." is displayed probably because of a wrong computing based on himetric values * and problably others problems
For information: The method org.eclipse.gef.editparts.GridLayer.setSpacing(Dimension) is called when modifying the "Grid Spacying" property and all seems OK in spacing values...
Post added on GMF forum: https://www.eclipse.org/forums/index.php/t/780844/