/** * Returns the default value of the variable. Typically, this is the first of * the possible values (see {@link #getValues()}. * * @return the default value of the variable */ public String getDefaultValue() { return getValues()[0]; }
/** * Returns the default value of the variable. Typically, this is the first of * the possible values (see {@link #getValues()}. * * @return the default value of the variable */ public String getDefaultValue() { return getValues()[0]; }
private static List variablesToPositions(TemplateVariable[] variables) { List positions = new ArrayList(5); for (int i = 0; i != variables.length; i++) { int[] offsets = variables[i].getOffsets(); // trim positions off whitespace String value = variables[i].getDefaultValue(); int wsStart = 0; while (wsStart < value.length() && Character.isWhitespace(value.charAt(wsStart))) { wsStart++; } variables[i].getValues()[0] = value.substring(wsStart); for (int j = 0; j != offsets.length; j++) { offsets[j] += wsStart; positions.add(new RangeMarker(offsets[j], 0)); } } return positions; }
String[] values= variable.getValues(); ICompletionProposal[] proposals= new ICompletionProposal[values.length]; for (int j= 0; j < values.length; j++) {
String[] values= variable.getValues(); ICompletionProposal[] proposals= new ICompletionProposal[values.length]; for (int j= 0; j < values.length; j++) {
int length = variable.getLength(); String[] values = variable.getValues(); ICompletionProposal[] proposals = new ICompletionProposal[values.length]; for (int j = 0; j < values.length; j++)
guess.addSlave((VariablePosition) first); } else { String[] values= variable.getValues(); ICompletionProposal[] proposals= new ICompletionProposal[values.length]; for (int j= 0; j < values.length; j++) {
guess.addSlave((VariablePosition) first); } else { String[] values= variable.getValues(); ICompletionProposal[] proposals= new ICompletionProposal[values.length]; for (int j= 0; j < values.length; j++) {
guess.addSlave((VariablePosition) first); } else { String[] values= variable.getValues(); ICompletionProposal[] proposals= new ICompletionProposal[values.length]; for (int j= 0; j < values.length; j++) {