import org.eclipse.jface.text.link.LinkedPositionGroup;
import org.eclipse.jface.text.link.ProposalPosition;
-
/**
*
*/
public class VariablePosition extends ProposalPosition {
private MultiVariableGuess fGuess;
+
private MultiVariable fVariable;
- public VariablePosition(IDocument document, int offset, int length, MultiVariableGuess guess, MultiVariable variable) {
- this(document, offset, length, LinkedPositionGroup.NO_STOP, guess, variable);
+ public VariablePosition(IDocument document, int offset, int length,
+ MultiVariableGuess guess, MultiVariable variable) {
+ this(document, offset, length, LinkedPositionGroup.NO_STOP, guess,
+ variable);
}
-
- public VariablePosition(IDocument document, int offset, int length, int sequence, MultiVariableGuess guess, MultiVariable variable) {
+
+ public VariablePosition(IDocument document, int offset, int length,
+ int sequence, MultiVariableGuess guess, MultiVariable variable) {
super(document, offset, length, sequence, null);
Assert.isNotNull(guess);
Assert.isNotNull(variable);
- fVariable= variable;
- fGuess= guess;
+ fVariable = variable;
+ fGuess = guess;
}
-
-
+
/*
* @see org.eclipse.jface.text.link.ProposalPosition#equals(java.lang.Object)
*/
}
return false;
}
-
+
/*
* @see org.eclipse.jface.text.link.ProposalPosition#hashCode()
*/
public int hashCode() {
return super.hashCode() | fGuess.hashCode();
}
-
+
/*
* @see org.eclipse.jface.text.link.ProposalPosition#getChoices()
*/
public MultiVariable getVariable() {
return fVariable;
}
-
+
}