equal
deleted
inserted
replaced
165 * @return true, if given feature is a preview feature. |
165 * @return true, if given feature is a preview feature. |
166 */ |
166 */ |
167 public boolean isPreview(Feature feature) { |
167 public boolean isPreview(Feature feature) { |
168 if (feature == Feature.SWITCH_EXPRESSION || |
168 if (feature == Feature.SWITCH_EXPRESSION || |
169 feature == Feature.SWITCH_MULTIPLE_CASE_LABELS || |
169 feature == Feature.SWITCH_MULTIPLE_CASE_LABELS || |
170 feature == Feature.SWITCH_RULE) |
170 feature == Feature.SWITCH_RULE || |
|
171 feature == Feature.TEXT_BLOCKS) |
171 return true; |
172 return true; |
172 //Note: this is a backdoor which allows to optionally treat all features as 'preview' (for testing). |
173 //Note: this is a backdoor which allows to optionally treat all features as 'preview' (for testing). |
173 //When real preview features will be added, this method can be implemented to return 'true' |
174 //When real preview features will be added, this method can be implemented to return 'true' |
174 //for those selected features, and 'false' for all the others. |
175 //for those selected features, and 'false' for all the others. |
175 return forcePreview; |
176 return forcePreview; |