buf.append(getOneIndentLevel());
buf.append(createIndent(1));
	protected void smartIndentAfterNewLine(IDocument d, DocumentCommand c) {		int docLength= d.getLength();		if (c.offset == -1 || docLength == 0)			return;		try {			int p= (c.offset == docLength ? c.offset - 1 : c.offset);			int line= d.getLineOfOffset(p);			StringBuffer buf= new StringBuffer(c.text);			if (c.offset < docLength && d.getChar(c.offset) == '}') {				int indLine= findMatchingOpenBracket(d, line, c.offset, 0);				if (indLine == -1) {					indLine= line;				}				buf.append(getIndentOfLine(d, indLine));			} else {				int start= d.getLineOffset(line);				// if line just ended a javadoc comment, take the indent from the comment's begin line				IDocumentPartitioner partitioner= d.getDocumentPartitioner();				if (partitioner != null) {					ITypedRegion region= partitioner.getPartition(start);					if (JavaPartitionScanner.JAVA_DOC.equals(region.getType()))						start= d.getLineInformationOfOffset(region.getOffset()).getOffset();				}				int whiteend= findEndOfWhiteSpace(d, start, c.offset);				buf.append(d.get(start, whiteend - start));				if (getBracketCount(d, start, c.offset, true) > 0) {					buf.append(getOneIndentLevel());				}			}			c.text= buf.toString();		} catch (BadLocationException e) {			JavaPlugin.log(e);		}	}