use of com.cubrid.cubridmanager.ui.replication.control.ChangeSlaveDbWizard in project cubrid-manager by CUBRID.
the class ChangeSlaveDbAction method run.
/**
* change slave database
*/
public void run() {
Object[] obj = this.getSelectedObj();
if (obj == null || obj.length == 0 || !isSupported(obj[0])) {
setEnabled(false);
return;
}
ISchemaNode node = (ISchemaNode) obj[0];
CubridDatabase database = node.getDatabase();
if (database == null) {
CommonUITool.openErrorBox(getShell(), Messages.msgSelectDB);
return;
}
CMWizardDialog dialog = new CMWizardDialog(getShell(), new ChangeSlaveDbWizard(database));
dialog.setPageSize(400, 350);
dialog.open();
}
Aggregations