private int getEnd(int offs) throws BadLocationException {
		int length = getLength();
		for (int i=offs;i<length;i++){
			char c = getText(i, 1).charAt(0);
			if (c == ' ' || c == '\t' || c == '\n'){
				return i;
			}
		}
		return length;
	}