}
public void perform() {
Shell parentShell = Display.getCurrent().getActiveShell();
RectangleEllipseBoxPrinter boxPrinter = getPrinter();
SimpleStyleDialog dialog = new SimpleStyleDialog(parentShell, boxPrinter);
dialog.setBlockOnOpen(true);
int result = dialog.open();
if (result == Window.OK) {
boxPrinter.setLineWidth(dialog.getLineWidth());
boxPrinter.setLineAlpha(dialog.getLineAlpha());
boxPrinter.setLineColor(dialog.getLineColor());
boxPrinter.setFillAlpha(dialog.getFillAlpha());
boxPrinter.setFillColor(dialog.getFillColor());
boxPrinter.setType(dialog.getType());
} else {
return;
}
boxPrinter.setDirty(true);
}