DuplicatingStyleVisitor dsv = new DuplicatingStyleVisitor();
dsv.visit(oldStyle);
style = (Style) dsv.getCopy();
if (isLineStyle(style)) {
linesEditor = new LinePropertiesEditor(layer);
linesEditor.open(mainComposite, style);
stackLayout.topControl = linesEditor.getControl();
} else {
stackLayout.topControl = noFeatureLabel;
}