1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Enable folding for namespaces

This commit is contained in:
Anton Leherbauer 2008-03-21 14:14:06 +00:00
parent 7aa686b631
commit 498ff7334e

View file

@ -1189,7 +1189,7 @@ public class DefaultCFoldingStructureProvider implements ICFoldingStructureProvi
private Map<Object, List<Tuple>> computeCurrentStructure(FoldingStructureComputationContext ctx) {
boolean includeBranches= fPreprocessorBranchFoldingEnabled && ctx.fAST != null;
boolean includeStmts= fStatementsFoldingEnabled && ctx.fAST != null;
boolean includeCModel= ctx.fAST != null && isConsistent(fInput);
boolean includeCModel= ctx.fAST != null || !(fPreprocessorBranchFoldingEnabled || fStatementsFoldingEnabled);
Map<Object, List<Tuple>> map= new HashMap<Object, List<Tuple>>();
ProjectionAnnotationModel model= ctx.getModel();
Iterator e= model.getAnnotationIterator();
@ -1601,6 +1601,8 @@ public class DefaultCFoldingStructureProvider implements ICFoldingStructureProvi
case ICElement.C_TEMPLATE_METHOD:
collapse= ctx.collapseMethods();
break;
case ICElement.C_NAMESPACE:
break;
default:
return;
}