use of com.cubrid.cubridmanager.ui.cubrid.database.control.CreateDatabaseWizard in project cubrid-manager by CUBRID.
the class CreateDatabaseAction method run.
public void run() {
Object[] obj = this.getSelectedObj();
if (obj != null && obj.length > 0) {
if (!isSupported(obj[0])) {
this.setEnabled(false);
return;
}
node = (ICubridNode) obj[0];
server = node.getServer();
ISelectionProvider provider = this.getSelectionProvider();
viewer = (TreeViewer) provider;
}
String serverNameKey = node.getServer().getId() + ICubridNodeLoader.NODE_SEPARATOR + CubridServerLoader.DATABASE_FOLDER_ID;
ICubridNode cubridServer = node.getServer().getChild(serverNameKey);
CMWizardDialog dialog = new CMWizardDialog(getShell(), new CreateDatabaseWizard(server, viewer, cubridServer));
dialog.setPageSize(580, 420);
dialog.open();
}
Aggregations