use of eu.esdihumboldt.hale.ui.style.editors.LineSymbolizerEditor in project hale by halestudio.
the class SimpleLineStylePage method createControl.
/**
* @see IDialogPage#createControl(Composite)
*/
@Override
public void createControl(Composite parent) {
// create new controls
Composite page = new Composite(parent, SWT.NONE);
RowLayout layout = new RowLayout(SWT.HORIZONTAL);
page.setLayout(layout);
Style style = getParent().getStyle();
LineSymbolizer line = null;
try {
Symbolizer[] symbolizers = SLD.symbolizers(style);
for (Symbolizer symbol : symbolizers) {
if (symbol instanceof LineSymbolizer) {
line = (LineSymbolizer) symbol;
break;
}
}
} catch (Exception e) {
// ignore
}
if (line == null) {
line = styleBuilder.createLineSymbolizer();
}
lineEditor = new LineSymbolizerEditor(page, line);
setControl(page);
}
Aggregations