use of com.cubrid.cubridmanager.ui.cubrid.jobauto.dialog.BackupErrLogDialog in project cubrid-manager by CUBRID.
the class BackupErrLogAction method run.
/**
*
* open from job dashboard
* @param CubridDatabase database
*/
public void run(CubridDatabase database) {
Shell shell = getShell();
BackupErrLogDialog dlg = new BackupErrLogDialog(shell);
dlg.setDatabase(database);
try {
if (dlg.loadData(shell)) {
dlg.open();
}
} catch (Exception e) {
LOGGER.error(e.getMessage(), e);
}
}
use of com.cubrid.cubridmanager.ui.cubrid.jobauto.dialog.BackupErrLogDialog in project cubrid-manager by CUBRID.
the class BackupErrLogAction method run.
/**
*
* @see org.eclipse.jface.action.Action#run()
*/
public void run() {
Shell shell = getShell();
Object[] obj = this.getSelectedObj();
DefaultSchemaNode node = null;
if (obj.length > 0 && obj[0] instanceof DefaultSchemaNode) {
node = (DefaultSchemaNode) obj[0];
}
if (node == null) {
return;
}
BackupErrLogDialog dlg = new BackupErrLogDialog(shell);
dlg.setDatabase(node.getDatabase());
try {
if (dlg.loadData(shell)) {
dlg.open();
}
} catch (Exception e) {
LOGGER.error(e.getMessage(), e);
}
}
Aggregations