private IWorkbenchWindow window;
@Override
public void runWithEvent( IAction action, Event event ) {
// Open a dialog for user to create featuretype
FeatureTypeEditorDialog dialog = new FeatureTypeEditorDialog(event.display.getActiveShell(), performOK);
setDefaultGeomType(dialog);
dialog.setBlockOnOpen(true);
int code = dialog.open();
if (code == Window.CANCEL)
return;
if (resource != null) {