Search in sources :

Example 1 with ChangeSlaveDbWizard

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();
}
Also used : ISchemaNode(com.cubrid.common.ui.spi.model.ISchemaNode) ChangeSlaveDbWizard(com.cubrid.cubridmanager.ui.replication.control.ChangeSlaveDbWizard) CubridDatabase(com.cubrid.common.ui.spi.model.CubridDatabase) CMWizardDialog(com.cubrid.common.ui.spi.dialog.CMWizardDialog)

Aggregations

CMWizardDialog (com.cubrid.common.ui.spi.dialog.CMWizardDialog)1 CubridDatabase (com.cubrid.common.ui.spi.model.CubridDatabase)1 ISchemaNode (com.cubrid.common.ui.spi.model.ISchemaNode)1 ChangeSlaveDbWizard (com.cubrid.cubridmanager.ui.replication.control.ChangeSlaveDbWizard)1