.addControl(new Button(getString("dialog.cancel")).onClicked(canceled))
.addControl(new Button(getString("dialog.okay")).onClicked(okay))
);
dialog.setWidth(300);
dialog.setHeight(200);
dialog.centerOnScreen();
}
protected void newDocCreated(SketchDocument doc) throws Exception {
main.setupNewDoc(new VectorModeHelper(main),doc);
//context.getMain().setupNewDoc(new VectorModeHelper(context.getMain()),doc);