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/EditorUtility.java
((TextEditorAction)toggleAction).setEditor(null);
					
					((TextEditorAction)toggleAction).setEditor((ITextEditor)editorPart);
				} else {
					
					toggleAction.run();
					
					toggleAction.run();
				}
			}
		}
	}
	/**
	 *@deprecated	Made it public again for java debugger UI.
	 */
	public static String getEditorID(IEditorInput input, Object inputObject) {
		IEditorDescriptor editorDescriptor;
		try {
			if (input instanceof IFileEditorInput)
				editorDescriptor= IDE.getEditorDescriptor(((IFileEditorInput)input).getFile());
			else
				editorDescriptor= IDE.getEditorDescriptor(input.getName());
		} catch (PartInitException e) {
			return null;
		}
		if (editorDescriptor != null)
			return editorDescriptor.getId();
		return null;
	}
	private static IEditorInput getEditorInput(IJavaElement element) throws JavaModelException {