Search in sources :

Example 1 with SaveJobBeforeRunAction

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();
    }
}
Also used : SaveJobBeforeRunAction(org.talend.designer.runprocess.ui.actions.SaveJobBeforeRunAction)

Example 2 with SaveJobBeforeRunAction

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);
}
Also used : SaveJobBeforeRunAction(org.talend.designer.runprocess.ui.actions.SaveJobBeforeRunAction) IProcess2(org.talend.core.model.process.IProcess2) ILaunch(org.eclipse.debug.core.ILaunch) ILaunchManager(org.eclipse.debug.core.ILaunchManager)

Aggregations

SaveJobBeforeRunAction (org.talend.designer.runprocess.ui.actions.SaveJobBeforeRunAction)2 ILaunch (org.eclipse.debug.core.ILaunch)1 ILaunchManager (org.eclipse.debug.core.ILaunchManager)1 IProcess2 (org.talend.core.model.process.IProcess2)1