Community
Participate
Working Groups
Hi, we embedded an Editor in a Preference page. During the creation of the preference page we create the Source Viewer and call org.eclipse.ui.contexts.IContextService.activateContext(String, Expression) to activate our context. this works fine if our preference page is not the one that is shown at opening (first opening in session) if we then switch to our preference page and close and reopen the preference dialog then on the activation keybinding problems are reported cause the contexts of the main window are still active and the context switch in org.eclipse.e4.ui.internal.workbench.swt.ShellActivationListener.activate(Shell) did not happen yet. how can this be solved. what is the intended way to activate our own context in the usecase? see also https://github.com/eclipse/xtext-eclipse/issues/1361 for more details Thanks Christian
Activate/deactivate your context when the SourceViewer gets/loses the focus?
have to think about possible side effects
I wonder if this is related to Bug 490780, Bug 489335 and/or Bug 414544, if so there is a time window in which the active part/window and context are out of sync.