Changes:
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / parser / PHPOutlineInfo.java
index bc3c567..9da892a 100644 (file)
@@ -8,22 +8,27 @@ 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;
   }
 
-  public boolean add(PHPFunctionDeclaration o) {
+  public boolean add(OutlineableWithChildren o) {
     return fDeclarations.add(o);
   }