Search in sources :

Example 1 with AutoAddVolumeLogDialog

use of com.cubrid.cubridmanager.ui.cubrid.dbspace.dialog.AutoAddVolumeLogDialog in project cubrid-manager by CUBRID.

the class AutoAddVolumeLogAction method run.

/**
	 * 
	 * @see org.eclipse.jface.action.Action#run()
	 */
public void run() {
    Object[] obj = this.getSelectedObj();
    DefaultCubridNode node = null;
    CubridServer server = null;
    if (obj.length > 0 && obj[0] instanceof DefaultCubridNode) {
        node = (DefaultCubridNode) obj[0];
        server = node.getServer();
    }
    AutoAddVolumeLogDialog dlg = new AutoAddVolumeLogDialog(getShell());
    dlg.setServer(server);
    if (dlg.loadData()) {
        dlg.open();
    }
}
Also used : DefaultCubridNode(com.cubrid.common.ui.spi.model.DefaultCubridNode) AutoAddVolumeLogDialog(com.cubrid.cubridmanager.ui.cubrid.dbspace.dialog.AutoAddVolumeLogDialog) CubridServer(com.cubrid.common.ui.spi.model.CubridServer)

Aggregations

CubridServer (com.cubrid.common.ui.spi.model.CubridServer)1 DefaultCubridNode (com.cubrid.common.ui.spi.model.DefaultCubridNode)1 AutoAddVolumeLogDialog (com.cubrid.cubridmanager.ui.cubrid.dbspace.dialog.AutoAddVolumeLogDialog)1