for (int i= 0; i <= spaceEquivalents; i++) { StringBuffer prefix= new StringBuffer();  if (useSpaces) { for (int j= 0; j + i < spaceEquivalents; j++) prefix.append(' ');  if (i != 0) prefix.append('\t'); } else { for (int j= 0; j < i; j++) prefix.append(' ');  if (i != spaceEquivalents) prefix.append('\t');
boolean useSpaces= JavaCore.SPACE.equals(indentMode) || DefaultCodeFormatterConstants.MIXED.equals(indentMode);  Assert.isLegal(allowTabs || useSpaces);  String[] result= null;  if (!allowTabs) { char[] spaces= new char[indentWidth]; Arrays.fill(spaces, ' '); result= new String[] { new String(spaces), "" }; } else if  (!useSpaces) result= getIndentPrefixesForTab(tabWidth); else { result= getIndentPrefixesForSpaces(tabWidth); }   for (int i= 0; i < result.length; i++) { String prefix= result[i]; for (int j= 0; j < prefix.length(); j++) { char ch= prefix.charAt(j); if (ch == '\t') System.out.print('t'); else if (ch == ' ') System.out.print('s'); else org.eclipse.core.runtime.Assert.isTrue(false);
	public String[] getIndentPrefixes(ISourceViewer sourceViewer, String contentType) {		Vector vector= new Vector();		// prefix[0] is either '\t' or ' ' x tabWidth, depending on useSpaces		IJavaProject project= getProject();		final int tabWidth= CodeFormatterUtil.getTabWidth(project);		final int indentWidth= CodeFormatterUtil.getIndentWidth(project);		int spaceEquivalents= Math.min(tabWidth, indentWidth);		boolean useSpaces;		if (project == null)			useSpaces= JavaCore.SPACE.equals(JavaCore.getOption(DefaultCodeFormatterConstants.FORMATTER_TAB_CHAR)) || tabWidth > indentWidth;		else			useSpaces= JavaCore.SPACE.equals(project.getOption(DefaultCodeFormatterConstants.FORMATTER_TAB_CHAR, true)) || tabWidth > indentWidth;		for (int i= 0; i <= spaceEquivalents; i++) {		    StringBuffer prefix= new StringBuffer();			if (useSpaces) {			    for (int j= 0; j + i < spaceEquivalents; j++)			    	prefix.append(' ');				if (i != 0)		    		prefix.append('\t');			} else {			    for (int j= 0; j < i; j++)			    	prefix.append(' ');				if (i != spaceEquivalents)		    		prefix.append('\t');			}			vector.add(prefix.toString());		}		vector.add(""); //$NON-NLS-1$		return (String[]) vector.toArray(new String[vector.size()]);	}