Merged "Open PHP Declaration" and "Open Include File" into one action "Open Declarati...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / internal / compiler / ast / ImportReference.java
index d0d13d3..8c1a460 100644 (file)
@@ -13,7 +13,10 @@ package net.sourceforge.phpeclipse.internal.compiler.ast;
 import net.sourceforge.phpdt.internal.compiler.IAbstractSyntaxTreeVisitor;
 import net.sourceforge.phpdt.internal.compiler.lookup.CompilationUnitScope;
 
-public class ImportReference extends AstNode {
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.IPath;
+
+public class ImportReference extends ASTNode {
        
 //     public char[][] tokens;
 //     public long[] sourcePositions; //each entry is using the code : (start<<32) + end
@@ -22,7 +25,8 @@ public class ImportReference extends AstNode {
        public int declarationEnd;// doesn't include an potential trailing comment
        public int declarationSourceStart;
        public int declarationSourceEnd;
-       public boolean used;
+       public boolean used; 
+       private IFile fFile;
 
 public ImportReference(char[] sourceString, int start, int end, boolean d) { // char[][] sources , long[] poss , boolean d) {
 //     tokens = sources ;
@@ -31,6 +35,7 @@ public ImportReference(char[] sourceString, int start, int end, boolean d) { //
        onDemand = d;
        sourceEnd = end;//(int)(sourcePositions[sourcePositions.length-1] & 0x00000000FFFFFFFF);
        sourceStart = start;//(int)(sourcePositions[0]>>>32) ;
+       fFile = null;
 }
 /**
  * @return char[][]
@@ -65,4 +70,16 @@ public void traverse(IAbstractSyntaxTreeVisitor visitor, CompilationUnitScope sc
        visitor.visit(this, scope);
        visitor.endVisit(this, scope);
 }
+/**
+ * @return Returns the filePath.
+ */
+public IFile getFile() {
+  return fFile;
+}
+/**
+ * @param filePath The filePath to set.
+ */
+public void setFile(IFile filePath) {
+  fFile = filePath;
+}
 }