提交 cbaae42e 编写于 作者: S Serge Rider

Navigator context activation fix

上级 651fb140
......@@ -173,7 +173,9 @@ class WorkbenchContextListener implements IWindowListener, IPageListener, IPartL
}
try {
contextService.deferUpdates(true);
if (part.getAdapter(INavigatorModelView.class) != null) {
if (part instanceof INavigatorModelView) {
// We check for instanceof (do not use adapter) because otherwise it become active
// for all entity editor and clashes with SQL editor and other complex stuff.
if (activationNavigator != null) {
//log.debug("Double activation of navigator context");
contextService.deactivateContext(activationNavigator);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册