Community
Participate
Working Groups
creat a simple project create a Logic Diagram inside the project goto preferences and select the logic diagram appearanc settings change the font, the line color , the fill color create a Led; the led still shows up with the default colors and font
The ViewFactory for the LED needs to respect the preferences.
Created attachment 28746 [details] patch for LEDViewFactory
The LEDViewFactory createView method was hard coding the style: color - logicGreen font name - "" font height - 19 font and line colors - determined by figure utilities (see below) ShapeStyle style = (ShapeStyle)view.getStyle (NotationPackage.eINSTANCE.getShapeStyle()); style.setFillColor((FigureUtilities.colorToInteger (LogicColorConstants.logicGreen)).intValue()); style.setFontName(""); //$NON-NLS-1$ style.setFontHeight(19); style.setFontColor((FigureUtilities.colorToInteger (LogicColorConstants.displayText)).intValue()); style.setLineColor((FigureUtilities.colorToInteger (LogicColorConstants.connectorGreen)).intValue()); The attached patch will only set the font height to 19 but all other preferences will be honored. The font height can be changed through the properties view if necessary.
Created attachment 28931 [details] patch for AppearancePreferencePage AppearancePreferencePage's setDefaultFontPreference method has been made protected (changed from private)
Created attachment 28932 [details] patch for the Logic Diagram Plugin The LEDViewFactory hard codes the colors for the LED display fill and text. The logic diagram defaults have been modified to better suit the example's diagram content.
Comitted the changes.
[GMF Restructure] Bug 319140 : product GMF and component Runtime Diagram was the original product and component for this bug