protected PHPUnitContext(ContextType type, IDocument document, int completionPosition)
//,ICompilationUnit compilationUnit)
{
- super(type, document, completionPosition);
+ super(type, document, completionPosition, 0);
// fCompilationUnit= compilationUnit;
}
return
// fEnabled &&
// fContextTypeName.equals(contextTypeName) &&
- (prefix.length() != 0) && identifier.toLowerCase().startsWith(prefix.toLowerCase());
+ (prefix.length() != 0) && identifier.toLowerCase().startsWith(prefix.toLowerCase());
}
/*
public int getStart() {
IDocument document = getDocument();
try {
- int start = getCompletionPosition();
+ int start = getCompletionOffset();
+ if ( ((start != 0) && specialChars.indexOf(document.getChar(start - 1)) != (-1) )) {
+ return --start;
+ }
+
while (((start != 0) && Character.isUnicodeIdentifierPart(document.getChar(start - 1)))
|| ((start != 0) && specialChars.indexOf(document.getChar(start - 1)) != (-1) )) {
start--;
return start;
} catch (BadLocationException e) {
- return getCompletionPosition();
+ return getCompletionOffset();
}
}