Community
Participate
Working Groups
In org.eclipse.gmf.runtime.diagram.ui.properties.sections.appearance.ColorsAndFontsPropertySection, the createFontsGroup() correctly determines whether it's in read only mode (using isReadOnly()) and correctly disables controls using setEnabled(false) when in read only mode. However, the refresh() method completely ignores the previous enablement and redetermines enablement based on ep.getNotationView().getStyle(NotationPackage.eINSTANCE.getFontStyle()) != null. Two issues. 1) No need to set enablement in createFontsGroup() if it will be immediately overwritten by settings in the refresh() method. 2) refresh() method needs to take isReadOnly() into account. Please compare v1.7 and v1.8 of the file.
Created attachment 54642 [details] Patch for ColorsAndFontsPropertySection Addresses the read only issue. Also enablement for fill button didn't seem to be set consistently & fixed that too.
committed patch to R1_0_maintenance and HEAD (updated copyright to 2007).
*** Bug 157188 has been marked as a duplicate of this bug. ***
[GMF Restructure] Bug 319140 : product GMF and component Runtime Diagram was the original product and component for this bug