Search in sources :

Example 1 with ParamDumpDialog

use of com.cubrid.cubridmanager.ui.cubrid.database.dialog.ParamDumpDialog in project cubrid-manager by CUBRID.

the class ParamDumpAction method run.

public void run() {
    Object[] obj = this.getSelectedObj();
    if (!isSupported(obj[0])) {
        setEnabled(false);
        return;
    }
    ISchemaNode node = (ISchemaNode) obj[0];
    CubridDatabase database = node.getDatabase();
    if (database == null) {
        CommonUITool.openErrorBox(getShell(), Messages.msgSelectDB);
        return;
    }
    ParamDumpDialog dlg = new ParamDumpDialog(getShell());
    dlg.setDatabase(database);
    dlg.open();
}
Also used : ISchemaNode(com.cubrid.common.ui.spi.model.ISchemaNode) CubridDatabase(com.cubrid.common.ui.spi.model.CubridDatabase) ParamDumpDialog(com.cubrid.cubridmanager.ui.cubrid.database.dialog.ParamDumpDialog)

Aggregations

CubridDatabase (com.cubrid.common.ui.spi.model.CubridDatabase)1 ISchemaNode (com.cubrid.common.ui.spi.model.ISchemaNode)1 ParamDumpDialog (com.cubrid.cubridmanager.ui.cubrid.database.dialog.ParamDumpDialog)1