Search in sources :

Example 1 with TransactionInfoDialog

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

the class TransactionInfoAction method run.

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

Aggregations

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