private String createIndent(int start, int indent) { int tabLen; if (JavaPlugin.getDefault() != null) tabLen= CodeFormatterUtil.getTabWidth(); else tabLen= 4;
private StringBuffer createIndent(int start, int indent) { int tabLen= prefTabLength();
	private String createIndent(int start, int indent) {		int tabLen;		if (JavaPlugin.getDefault() != null)			tabLen= CodeFormatterUtil.getTabWidth();		else			tabLen= 4;				StringBuffer ret= new StringBuffer();		try {			int spaces= 0;			while (start < indent) {								char ch= fDocument.getChar(start);				if (ch == '\t') {					ret.append('\t');					spaces= 0;				} else {					spaces++;					if (spaces == tabLen) {						ret.append('\t');						spaces= 0;					}				}								start++;			}			if (spaces == tabLen)				ret.append('\t');			else				while (spaces-- > 0)					ret.append(' ');					} catch (BadLocationException e) {		}				return ret.toString();	}