Search in sources :

Example 1 with ContextsView

use of org.talend.designer.core.ui.views.contexts.ContextsView in project tdi-studio-se by Talend.

the class ContextRepositoryCommand method refreshContextView.

/**
     * qzhang Comment method "refreshContextView".
     */
private void refreshContextView() {
    IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
    IViewPart view2 = page.findView(ContextsView.CTX_ID_DESIGNER);
    if (view2 instanceof ContextsView) {
        ((ContextsView) view2).updateContextView(contextItem == null);
    }
}
Also used : IViewPart(org.eclipse.ui.IViewPart) ContextsView(org.talend.designer.core.ui.views.contexts.ContextsView) IWorkbenchPage(org.eclipse.ui.IWorkbenchPage)

Example 2 with ContextsView

use of org.talend.designer.core.ui.views.contexts.ContextsView in project tdi-studio-se by Talend.

the class AbstractMultiPageTalendEditor method changeContextsViewStatus.

private void changeContextsViewStatus(boolean flag) {
    IWorkbenchPage workbenchPage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
    if (workbenchPage != null) {
        IViewPart view = workbenchPage.findView(ContextsView.CTX_ID_DESIGNER);
        if (view != null) {
            ContextsView contextsView = (ContextsView) view;
            contextsView.getContextViewComposite().setTabEnable(flag);
            contextsView.getContextViewComposite().getContextTableComposite().refresh();
        }
    }
}
Also used : IViewPart(org.eclipse.ui.IViewPart) ContextsView(org.talend.designer.core.ui.views.contexts.ContextsView) IWorkbenchPage(org.eclipse.ui.IWorkbenchPage)

Example 3 with ContextsView

use of org.talend.designer.core.ui.views.contexts.ContextsView in project tdi-studio-se by Talend.

the class ContextModifyCommand method refreshContextView.

/**
     * qzhang Comment method "refreshContextView".
     */
private void refreshContextView() {
    IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
    IViewPart view2 = page.findView(ContextsView.CTX_ID_DESIGNER);
    if (view2 instanceof ContextsView) {
        ((ContextsView) view2).updateContextView(true, false);
    }
}
Also used : IViewPart(org.eclipse.ui.IViewPart) ContextsView(org.talend.designer.core.ui.views.contexts.ContextsView) IWorkbenchPage(org.eclipse.ui.IWorkbenchPage)

Aggregations

IViewPart (org.eclipse.ui.IViewPart)3 IWorkbenchPage (org.eclipse.ui.IWorkbenchPage)3 ContextsView (org.talend.designer.core.ui.views.contexts.ContextsView)3