use of com.cubrid.cubridmanager.ui.cubrid.jobauto.progress.OpenJobAutomationInfoPartProgress in project cubrid-manager by CUBRID.
the class OpenJobAutomationInfoAction method openJobsDetailInfoEditor.
/**
* open job detail info part
* @param database
*/
public void openJobsDetailInfoEditor(CubridDatabase database) {
IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
if (null == window) {
return;
}
if (database == null) {
return;
}
/*Check it open same editor*/
IEditorPart editorPart = getOpenedEditorPart(database, JobAutoDashboardEditorPart.ID);
if (editorPart == null) {
OpenJobAutomationInfoPartProgress progress = new OpenJobAutomationInfoPartProgress(database);
progress.loadJobAutomationInfoList();
if (progress.isSuccess()) {
JobAutoDashboardInput input = new JobAutoDashboardInput(database, progress.getBackupPlanInfoList(), progress.getQueryPlanInfoList());
try {
window.getActivePage().openEditor(input, JobAutoDashboardEditorPart.ID);
} catch (PartInitException e) {
LOGGER.error("Can not initialize the trigger view list UI.", e);
}
}
} else {
JobAutoDashboardEditorPart jobAutoDetailInfoPart = (JobAutoDashboardEditorPart) editorPart;
window.getActivePage().activate(jobAutoDetailInfoPart);
jobAutoDetailInfoPart.refreshAll();
}
}
use of com.cubrid.cubridmanager.ui.cubrid.jobauto.progress.OpenJobAutomationInfoPartProgress in project cubrid-manager by CUBRID.
the class JobAutoDashboardEditorPart method refreshAll.
public void refreshAll() {
OpenJobAutomationInfoPartProgress progress = new OpenJobAutomationInfoPartProgress(database);
progress.loadJobAutomationInfoList();
if (progress.isSuccess()) {
backupPlanInfoList = progress.getBackupPlanInfoList();
queryPlanInfoList = progress.getQueryPlanInfoList();
setInputs(true, true);
}
backupPlanInfoFlag = false;
queryPlanInfoFlag = false;
}
use of com.cubrid.cubridmanager.ui.cubrid.jobauto.progress.OpenJobAutomationInfoPartProgress in project cubrid-manager by CUBRID.
the class JobAutoDashboardEditorPart method refreshBackupPlan.
public void refreshBackupPlan() {
OpenJobAutomationInfoPartProgress progress = new OpenJobAutomationInfoPartProgress(database, true, false);
progress.loadJobAutomationInfoList();
if (progress.isSuccess()) {
backupPlanInfoList = progress.getBackupPlanInfoList();
setInputs(true, false);
}
backupPlanInfoFlag = false;
}
use of com.cubrid.cubridmanager.ui.cubrid.jobauto.progress.OpenJobAutomationInfoPartProgress in project cubrid-manager by CUBRID.
the class JobAutoDashboardEditorPart method refreshQueryPlan.
public void refreshQueryPlan() {
OpenJobAutomationInfoPartProgress progress = new OpenJobAutomationInfoPartProgress(database, false, true);
progress.loadJobAutomationInfoList();
if (progress.isSuccess()) {
queryPlanInfoList = progress.getQueryPlanInfoList();
setInputs(false, true);
}
queryPlanInfoFlag = false;
}
Aggregations