use of org.talend.designer.runprocess.ui.actions.SaveJobBeforeRunAction in project tdi-studio-se by Talend.
the class ProcessComposite method checkSaveBeforeRunSelection.
/**
* DOC Administrator Comment method "checkSaveBeforeRunSelection".
*/
private void checkSaveBeforeRunSelection() {
/* processContext can store the save button value of current processView,bug 16791 */
if (processContext.isSaveBeforeRun()) {
SaveJobBeforeRunAction action = new SaveJobBeforeRunAction(processContext.getProcess());
action.run();
}
}
use of org.talend.designer.runprocess.ui.actions.SaveJobBeforeRunAction in project tdi-studio-se by Talend.
the class MemoryRuntimeComposite method exec.
private void exec() {
if (processContext instanceof IProcess2) {
ReplaceNodesInProcessProvider.beforeRunJobInGUI(processContext.getProcess());
}
CorePlugin.getDefault().getRunProcessService().saveJobBeforeRun(processContext.getProcess());
if (processContext.isClearBeforeExec()) {
processContext.clearMessages();
}
processContext.setMonitorTrace(false);
processContext.setWatchAllowed(processManager.getExecTime());
processContext.setMonitorPerf(processManager.getStat());
if (processContext.isSaveBeforeRun()) {
SaveJobBeforeRunAction action = new SaveJobBeforeRunAction(processContext.getProcess());
action.run();
}
processContext.setSelectedContext(processManager.getSelectContext());
processContext.exec(processManager.getProcessShell());
ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
ILaunch[] launches = manager.getLaunches();
manager.removeLaunches(launches);
}
Aggregations