DuplicatingStyleVisitor dsv = new DuplicatingStyleVisitor();
dsv.visit(style);
oldStyleCopy = (Style) dsv.getCopy();
if (isPolygonStyle(style)) {
propertiesEditor = new PolygonPropertiesEditor(layer);
propertiesEditor.open(mainComposite, style);
stackLayout.topControl = propertiesEditor.getControl();
} else {
stackLayout.topControl = noFeatureLabel;
}