X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/PHPOutlineInfo.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/PHPOutlineInfo.java index bc3c567..a36a277 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/PHPOutlineInfo.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/PHPOutlineInfo.java @@ -1,5 +1,7 @@ package net.sourceforge.phpdt.internal.compiler.parser; +import net.sourceforge.phpdt.internal.compiler.ast.PHPDocument; + import java.util.TreeSet; /** @@ -8,18 +10,23 @@ import java.util.TreeSet; */ public class PHPOutlineInfo { TreeSet fVariables; - PHPSegmentWithChildren fDeclarations; + OutlineableWithChildren fDeclarations; public PHPOutlineInfo(Object parent) { fVariables = new TreeSet(); fDeclarations = new PHPClassDeclaration(parent, "_root", 1); } + public PHPOutlineInfo(Object parent, OutlineableWithChildren phpDocument) { + fVariables = new TreeSet(); + fDeclarations = phpDocument; + } + public TreeSet getVariables() { return fVariables; } - public PHPSegmentWithChildren getDeclarations() { + public OutlineableWithChildren getDeclarations() { return fDeclarations; }