Search in sources :

Example 1 with ProcessView

use of org.talend.designer.runprocess.ui.views.ProcessView in project tdi-studio-se by Talend.

the class RunProcessAction method run.

@Override
public void run() {
    if ((ProcessComposite.getProcessContext() != null && !ProcessComposite.getProcessContext().isRunning())) {
        IWorkbench workbench = PlatformUI.getWorkbench();
        IWorkbenchPage page = workbench.getActiveWorkbenchWindow().getActivePage();
        // TODO SML Use getInstance
        ShowRunProcessViewAction action = new ShowRunProcessViewAction();
        action.run();
        // TODO SML Optimize
        ProcessView view = (ProcessView) page.getActivePart();
        view.runAction.run();
    }
}
Also used : IWorkbench(org.eclipse.ui.IWorkbench) ProcessView(org.talend.designer.runprocess.ui.views.ProcessView) IWorkbenchPage(org.eclipse.ui.IWorkbenchPage)

Aggregations

IWorkbench (org.eclipse.ui.IWorkbench)1 IWorkbenchPage (org.eclipse.ui.IWorkbenchPage)1 ProcessView (org.talend.designer.runprocess.ui.views.ProcessView)1