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);
}
}
Aggregations