Changes:
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / corext / template / php / PHPUnitContext.java
index 762180d..8f9a0be 100644 (file)
@@ -25,7 +25,7 @@ public class PHPUnitContext extends DocumentTemplateContext {
   private static final String specialChars = "$";
   /** The compilation unit, may be <code>null</code>. */
   //   private final ICompilationUnit fCompilationUnit;
-
+       protected boolean fForceEvaluation;
   /**
    * Creates a compilation unit context.
    * 
@@ -40,7 +40,14 @@ public class PHPUnitContext extends DocumentTemplateContext {
     super(type, document, completionPosition, 0);
     // fCompilationUnit= compilationUnit;
   }
-
+       
+       protected PHPUnitContext(ContextType type, IDocument document, int completionPosition, int completionLength)
+               //,ICompilationUnit compilationUnit)
+               {
+                       super(type, document, completionPosition, completionLength);
+                       //      fCompilationUnit= compilationUnit;
+               }
+               
   /*
   * @see TemplateContext#canEvaluate(Template templates)
   */
@@ -58,7 +65,8 @@ public class PHPUnitContext extends DocumentTemplateContext {
     return
     //      fEnabled &&
     //      fContextTypeName.equals(contextTypeName) &&
-      (prefix.length() != 0) && identifier.toLowerCase().startsWith(prefix.toLowerCase());
+//      (prefix.length() != 0) && 
+      identifier.toLowerCase().startsWith(prefix.toLowerCase());
   }
 
   /*
@@ -130,6 +138,7 @@ public class PHPUnitContext extends DocumentTemplateContext {
       return ' ';
     }
   }
+  
   /**
    * Returns the compilation unit if one is associated with this context, <code>null</code> otherwise.
    */
@@ -157,4 +166,11 @@ public class PHPUnitContext extends DocumentTemplateContext {
   //           }       
   //   }
 
+  /**
+   * @param b
+   */
+  public void setForceEvaluation(boolean b) {
+    fForceEvaluation = b;
+  }
+
 }