Project: Eclipse_Platform_UI
Bug 371289 Add "active" context variables
Reported: 2012-02-10 15:53:45 | Status: verified fixed

In many cases in SDK we see the following pattern: RunAndTrack() { ... getActiveLeaf().get("some_name"); ... } While this works, it might be not efficient as RaT will be called on every change of the active part, regardless if the observed value of "some_name" changed. I'd like to see if we can add "active" variables that will serve as a buffer and will only trigger RaT above when the "some_name" value changed. The RaT would look like this: RunAndTrack() { ... getActive("some_name"); ... }

Files changed in fix:
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/workbench/modeling/ExpressionContext.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/services/EvaluationService.java