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
* there. See http://dev.eclipse.org/bugs/show_bug.cgi?id=6295
	 *
	 * @param progressMonitor the progress monitor
	 */
	protected void performSaveAs(IProgressMonitor progressMonitor) {
		Shell shell= getSite().getShell();
		IEditorInput input = getEditorInput();
		SaveAsDialog dialog= new SaveAsDialog(shell);
		IFile original= (input instanceof IFileEditorInput) ? ((IFileEditorInput) input).getFile() : null;
		if (original != null)
			dialog.setOriginalFile(original);
		dialog.create();
		IDocumentProvider provider= getDocumentProvider();
		if (provider == null) {
			
			return;
		}
		if (provider.isDeleted(input) && original != null) {
			String message= Messages.format(JavaEditorMessages.CompilationUnitEditor_warning_save_delete, new Object[] { original.getName() });
			dialog.setErrorMessage(null);
			dialog.setMessage(message, IMessageProvider.WARNING);
		}
		if (dialog.open() == Window.CANCEL) {
			if (progressMonitor != null)
				progressMonitor.setCanceled(true);
			return;
		}
		IPath filePath= dialog.getResult();
		if (filePath == null) {
			if (progressMonitor != null)