Bug 97921 [typing] CompilationUnitEditor.TabConvertor should use project dependent formatter settings
with 3.1 RC1, In the code formatter I set tab policy to spaces only, indentation size = 2, and tab size = 8. when I hit the tab key, 2 spaces are added to the line instead of going to an 8 space (tab) boundary.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
private int fTabRatio;
		private ILineTracker fLineTracker;
		public TabConverter() {
		}
		public void setNumberOfSpacesPerTab(int ratio) {
			fTabRatio= ratio;
		}
		public void setLineTracker(ILineTracker lineTracker) {
			fLineTracker= lineTracker;
		}
		private int insertTabString(StringBuffer buffer, int offsetInLine) {
			if (fTabRatio == 0)
				return 0;
			int remainder= offsetInLine % fTabRatio;
			remainder= fTabRatio - remainder;
			for (int i= 0; i < remainder; i++)
				buffer.append(' ');
			return remainder;
		}
		public void customizeDocumentCommand(IDocument document, DocumentCommand command) {
			String text= command.text;
			if (text == null)
				return;
			int index= text.indexOf('\t');
			if (index > -1) {
				StringBuffer buffer= new StringBuffer();