import net.sourceforge.phpdt.core.compiler.CharOperation;
-import org.eclipse.core.runtime.IProgressMonitor;
+//import org.eclipse.core.runtime.IProgressMonitor;
/**
* Completion proposal.
/**
* Offset in original buffer where ICodeAssist.codeComplete() was requested.
*/
- private int completionLocation;
+ //private int completionLocation;
/**
* Start position (inclusive) of source range in original buffer containing
* the relevant token defaults to empty subrange at [0,0).
*/
- private int tokenStart = 0;
+ //private int tokenStart = 0;
/**
* End position (exclusive) of source range in original buffer containing
* the relevant token; defaults to empty subrange at [0,0).
*/
- private int tokenEnd = 0;
+ //private int tokenEnd = 0;
/**
* Completion string; defaults to empty string.
* Relevance rating; positive; higher means better; defaults to minimum
* rating.
*/
- private int relevance = 1;
+ //private int relevance = 1;
/**
* Signature of the relevant package or type declaration in the context, or
* Parameter names (for method completions), or <code>null</code> if none.
* Lazily computed. Defaults to <code>null</code>.
*/
- private char[][] parameterNames = null;
+ //private char[][] parameterNames = null;
/**
* Indicates whether parameter names have been computed.
*/
- private boolean parameterNamesComputed = false;
+ //private boolean parameterNamesComputed = false;
/**
* Creates a basic completion proposal. All instance field have plausible
throw new IllegalArgumentException();
}
this.completionKind = kind;
- this.completionLocation = completionLocation;
+ //this.completionLocation = completionLocation;
}
/**
* @return character index in source file buffer
* @see ICodeAssist#codeComplete(int,CompletionRequestor)
*/
- public int getCompletionLocation() {
- return this.completionLocation;
- }
+// public int getCompletionLocation() {
+// return this.completionLocation;
+// }
/**
* Returns the character index of the start of the subrange in the source
*
* @return character index of token start position (inclusive)
*/
- public int getTokenStart() {
- return this.tokenStart;
- }
+// public int getTokenStart() {
+// return this.tokenStart;
+// }
/**
* Returns the character index of the end (exclusive) of the subrange in the
*
* @return character index of token end position (exclusive)
*/
- public int getTokenEnd() {
- return this.tokenEnd;
- }
+// public int getTokenEnd() {
+// return this.tokenEnd;
+// }
/**
* Sets the character indices of the subrange in the source file buffer
* @param endIndex
* character index of token end position (exclusive)
*/
- public void setTokenRange(int startIndex, int endIndex) {
- if (startIndex < 0 || endIndex < startIndex) {
- throw new IllegalArgumentException();
- }
- this.tokenStart = startIndex;
- this.tokenEnd = endIndex;
- }
+// public void setTokenRange(int startIndex, int endIndex) {
+// if (startIndex < 0 || endIndex < startIndex) {
+// throw new IllegalArgumentException();
+// }
+// this.tokenStart = startIndex;
+// this.tokenEnd = endIndex;
+// }
/**
* Returns the proposed sequence of characters to insert into the source
* @param completion
* the completion string
*/
- public void setCompletion(char[] completion) {
- this.completion = completion;
- }
+// public void setCompletion(char[] completion) {
+// this.completion = completion;
+// }
/**
* Returns the character index of the start of the subrange in the source
* @param endIndex
* character index of replacement end position (exclusive)
*/
- public void setReplaceRange(int startIndex, int endIndex) {
- if (startIndex < 0 || endIndex < startIndex) {
- throw new IllegalArgumentException();
- }
- this.replaceStart = startIndex;
- this.replaceEnd = endIndex;
- }
+// public void setReplaceRange(int startIndex, int endIndex) {
+// if (startIndex < 0 || endIndex < startIndex) {
+// throw new IllegalArgumentException();
+// }
+// this.replaceStart = startIndex;
+// this.replaceEnd = endIndex;
+// }
/**
* Returns the relative relevance rating of this proposal.
* @return relevance rating of this proposal; ratings are positive; higher
* means better
*/
- public int getRelevance() {
- return this.relevance;
- }
+// public int getRelevance() {
+// return this.relevance;
+// }
/**
* Sets the relative relevance rating of this proposal.
* relevance rating of this proposal; ratings are positive;
* higher means better
*/
- public void setRelevance(int rating) {
- if (rating <= 0) {
- throw new IllegalArgumentException();
- }
- this.relevance = rating;
- }
+// public void setRelevance(int rating) {
+// if (rating <= 0) {
+// throw new IllegalArgumentException();
+// }
+// this.relevance = rating;
+// }
/**
* Returns the type or package signature of the relevant declaration in the
* @param signature
* the type or package signature, or <code>null</code> if none
*/
- public void setDeclarationSignature(char[] signature) {
- this.declarationSignature = signature;
- }
+// public void setDeclarationSignature(char[] signature) {
+// this.declarationSignature = signature;
+// }
/**
* Returns the simple name of the method, field, member, or variable
* @param signature
* the signature, or <code>null</code> if none
*/
- public void setSignature(char[] signature) {
- this.signature = signature;
- }
+// public void setSignature(char[] signature) {
+// this.signature = signature;
+// }
/**
* Returns the modifier flags relevant in the context, or
* @param flags
* the modifier flags, or <code>Flags.AccDefault</code> if none
*/
- public void setFlags(int flags) {
- this.flags = flags;
- }
+// public void setFlags(int flags) {
+// this.flags = flags;
+// }
/**
* Finds the method parameter names. This information is relevant to method
* @return the parameter names, or <code>null</code> if none or not
* available or not relevant
*/
- public char[][] findParameterNames(IProgressMonitor monitor) {
- if (!this.parameterNamesComputed) {
- this.parameterNamesComputed = true;
- // TODO (jerome) - Missing implementation
- }
- return this.parameterNames;
- }
+// public char[][] findParameterNames(IProgressMonitor monitor) {
+// if (!this.parameterNamesComputed) {
+// this.parameterNamesComputed = true;
+// // TODO (jerome) - Missing implementation
+// }
+// return this.parameterNames;
+// }
/**
* Sets the method parameter names. This information is relevant to method
* @param parameterNames
* the parameter names, or <code>null</code> if none
*/
- public void setParameterNames(char[][] parameterNames) {
- this.parameterNames = parameterNames;
- this.parameterNamesComputed = true;
- }
+// public void setParameterNames(char[][] parameterNames) {
+// this.parameterNames = parameterNames;
+// this.parameterNamesComputed = true;
+// }
}