Skip to content

Commit efb4075

Browse files
committed
Do not show Contribution Item if the Property Tester is not
instantiated. By default each contribution item is visible when the platform ui is created. Later Menu/Toolbar listeners check with VisibleWhen expression to show/hide the Item. If the bundle containing Property tester is not loaded then the visibility remains true. We can hide the contribution if the property tester is not loaded. See #2900
1 parent 037c5d7 commit efb4075

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/ContributionsAnalyzer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ private static boolean isCoreExpressionVisible(MCoreExpression coreExpression, f
260260
}
261261
boolean ret = false;
262262
try {
263-
ret = ref.evaluate(eContext) != EvaluationResult.FALSE;
263+
ret = ref.evaluate(eContext) == EvaluationResult.TRUE ? true : false;
264264
} catch (Exception e) {
265265
if (DEBUG) {
266266
trace("isVisible exception", e); //$NON-NLS-1$

0 commit comments

Comments
 (0)