Search in sources :

Example 1 with BackupErrLogDialog

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);
    }
}
Also used : BackupErrLogDialog(com.cubrid.cubridmanager.ui.cubrid.jobauto.dialog.BackupErrLogDialog) Shell(org.eclipse.swt.widgets.Shell)

Example 2 with BackupErrLogDialog

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);
    }
}
Also used : BackupErrLogDialog(com.cubrid.cubridmanager.ui.cubrid.jobauto.dialog.BackupErrLogDialog) Shell(org.eclipse.swt.widgets.Shell) DefaultSchemaNode(com.cubrid.common.ui.spi.model.DefaultSchemaNode)

Aggregations

BackupErrLogDialog (com.cubrid.cubridmanager.ui.cubrid.jobauto.dialog.BackupErrLogDialog)2 Shell (org.eclipse.swt.widgets.Shell)2 DefaultSchemaNode (com.cubrid.common.ui.spi.model.DefaultSchemaNode)1