1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 14:15:23 +02:00

Enable plug-in activation in the launch descriptor context.

Property testers for the launch descriptor type enablement aren't
getting called even if they are set to plug-in activation true. The
evaluation context needs to enable it as well.

Change-Id: I309af38e37870220fa6bf3eb2781c85d4f73e7ec
This commit is contained in:
Doug Schaefer 2017-02-09 11:27:06 -05:00 committed by Gerrit Code Review @ Eclipse.org
parent 313b437b36
commit 98b34f15de

View file

@ -88,7 +88,9 @@ public class LaunchDescriptorTypeInfo {
public boolean enabled(Object launchObject) throws CoreException {
if (expression == null)
return true;
EvaluationResult result = expression.evaluate(new EvaluationContext(null, launchObject));
EvaluationContext context = new EvaluationContext(null, launchObject);
context.setAllowPluginActivation(true);
EvaluationResult result = expression.evaluate(context);
return (result == EvaluationResult.TRUE);
}
}