c.length= indent.length();
c.length += c.offset - lineOffset;
	private void smartIndentAfterOpeningBracket(IDocument d, DocumentCommand c) {		if (c.offset < 1 || d.getLength() == 0)			return;					JavaHeuristicScanner scanner= new JavaHeuristicScanner(d);		int p= (c.offset == d.getLength() ? c.offset - 1 : c.offset);				try {			// current line			int line= d.getLineOfOffset(p);			int lineOffset= d.getLineOffset(line);						// line of last javacode			int pos= scanner.findNonWhitespaceBackward(p, JavaHeuristicScanner.UNBOUND);			if (pos == -1)				return;			int lastLine= d.getLineOfOffset(pos);						// only shift if the last java line is further up and is a braceless block candidate			if (lastLine < line) {							JavaIndenter indenter= new JavaIndenter(d, scanner);				StringBuffer indent= indenter.computeIndentation(p, true);				if (indent != null) {					c.text= indent.append(c.text).toString();					c.length= indent.length();					c.offset= lineOffset;				}			}					} catch (BadLocationException e) {			JavaPlugin.log(e);		}			}