Bug 14409 Hardcoded usage of \t for indent
Build 20020418 While fixing the indent problem for extract method I did a search for \t in JDT UI. The following classes are IMO suspicious regarding their usage of \t JavaAutoIndentStrategy.java NLSLine.java NLSRefactoring.java StubUtility.java SurroundWithTryCatchRefactoring.java
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java
}
		return String.valueOf('\t');
	}	
	
	/**
	 * Returns whether the text ends with one of the given search strings.
	 */
	private boolean endsWithDelimiter(IDocument d, String txt) {
		
		String[] delimiters= d.getLegalLineDelimiters();
		
		for (int i= 0; i < delimiters.length; i++) {
			if (txt.endsWith(delimiters[i]))
				return true;
		}
		
		return false;
	}	
	/**
	 * @see IAutoIndentStrategy#customizeDocumentCommand
	 */
	public void customizeDocumentCommand(IDocument d, DocumentCommand c) {
		if (c.length == 0 && c.text != null && endsWithDelimiter(d, c.text))
			smartIndentAfterNewLine(d, c);
		else if ("}".equals(c.text)) { 
			smartInsertAfterBracket(d, c);
		}
	}
}