X-Git-Url: http://secure.phpeclipse.com
diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/CompletionProposal.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/CompletionProposal.java
index 0e3e548..6123119 100644
--- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/CompletionProposal.java
+++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/CompletionProposal.java
@@ -12,7 +12,7 @@ package net.sourceforge.phpdt.core;
import net.sourceforge.phpdt.core.compiler.CharOperation;
-import org.eclipse.core.runtime.IProgressMonitor;
+//import org.eclipse.core.runtime.IProgressMonitor;
/**
* Completion proposal.
@@ -266,19 +266,19 @@ public final class CompletionProposal {
/**
* 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.
@@ -301,7 +301,7 @@ public final class CompletionProposal {
* 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
@@ -331,12 +331,12 @@ public final class CompletionProposal {
* Parameter names (for method completions), or null
if none.
* Lazily computed. Defaults to null
.
*/
- 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
@@ -380,7 +380,7 @@ public final class CompletionProposal {
throw new IllegalArgumentException();
}
this.completionKind = kind;
- this.completionLocation = completionLocation;
+ //this.completionLocation = completionLocation;
}
/**
@@ -407,9 +407,9 @@ public final class CompletionProposal {
* @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
@@ -422,9 +422,9 @@ public final class CompletionProposal {
*
* @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
@@ -433,9 +433,9 @@ public final class CompletionProposal {
*
* @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
@@ -453,13 +453,13 @@ public final class CompletionProposal {
* @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
@@ -492,9 +492,9 @@ public final class CompletionProposal {
* @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
@@ -544,13 +544,13 @@ public final class CompletionProposal {
* @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.
@@ -558,9 +558,9 @@ public final class CompletionProposal {
* @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.
@@ -576,12 +576,12 @@ public final class CompletionProposal {
* 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
@@ -627,9 +627,9 @@ public final class CompletionProposal {
* @param signature
* the type or package signature, or null
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
@@ -721,9 +721,9 @@ public final class CompletionProposal {
* @param signature
* the signature, or null
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
@@ -776,9 +776,9 @@ public final class CompletionProposal {
* @param flags
* the modifier flags, or Flags.AccDefault
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
@@ -797,13 +797,13 @@ public final class CompletionProposal {
* @return the parameter names, or null
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
@@ -816,8 +816,8 @@ public final class CompletionProposal {
* @param parameterNames
* the parameter names, or null
if none
*/
- public void setParameterNames(char[][] parameterNames) {
- this.parameterNames = parameterNames;
- this.parameterNamesComputed = true;
- }
+// public void setParameterNames(char[][] parameterNames) {
+// this.parameterNames = parameterNames;
+// this.parameterNamesComputed = true;
+// }
}