Bug 111509 [api] Need public api for EditorUtility.getActiveEditorJavaInput(..)
We are using internal jdt calls to perform some of our operations. We are using EditorUtility.getActiveEditorJavaInput(..) and would like to replace it with public api. We couldn't find public API to replace this usage. This is blocking our effort to remove access to JDT internal source.
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();