parent.setLayout(gridLayout);
if (editorSupported) {
colorRulesEditor = new CoverageColorEditor(parent, SWT.NONE);
StyleBlackboard styleBlackboard = layer.getStyleBlackboard();
Style style = (Style) styleBlackboard.get(SLDContent.ID);
if (style == null) {
style = createDefaultStyle();
// put style back on blackboard
styleBlackboard.put(SLDContent.ID, style);
styleBlackboard.setSelected(new String[]{SLDContent.ID});
}
style.setName(layer.getName());
ArrayList<CoverageRule> listOfRules = new ArrayList<CoverageRule>();
// Rule ruleToUpdate = SLDs.getRasterSymbolizerRule(style);
RasterSymbolizer rasterSymbolizer = SLDs.rasterSymbolizer(style);