public void refresh() {
IStyleEditorPageContainer container = getContainer();
// StyleLayer layer = container.getSelectedLayer();
// SimpleFeatureType schema = layer.getSchema();
Style style = container.getStyle();
LineSymbolizer lineSymbolizer = SLDs.lineSymbolizer(style);
try {
listen( false ); // do not issue events while controls being updated by hand
if( lineSymbolizer == null ){
// nothing to do here - kind of like a geometry of "(none)"
//
size.getControl().setEnabled(false);
size.setInput( Expression.NIL );
color.getControl().setEnabled(false);
color.setInput( Expression.NIL );
return;
}
Stroke stroke = lineSymbolizer.getStroke();
if( stroke == null ){
// no stroke? kind of like width == 0
size.setInput( Expression.NIL );
color.setInput( Expression.NIL );
}