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);
}
}
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();
}
}
}
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);
}
}
Aggregations