Bug 43032 Autoindent/Smart Tab in case statement
... case label: { <press Enter here> I <new cursor position> Indentation level should be one less.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaIndenter.java
if (fAlignPlusOne)
				spaces++;
			
			if (spaces == tabLen)
				ret.append('\t');
			else
				while (spaces-- > 0)
					ret.append(' ');
			
		} catch (BadLocationException e) {
		}
		
		return ret.toString();
	}
	/**
	 * Creates a string that represents the given number of indents (can be spaces or tabs..)
	 * @param indent the requested indentation level.
	 * 
	 * @return the indentation specified by <code>indent</code>
	 */
	private String createIndent(int indent) {
		
		if (JavaPlugin.getDefault() == null) {
			StringBuffer ret= new StringBuffer();
			while (indent-- > 0)
				ret.append('\t');
			
			return ret.toString();
		}