Bug 58815 "Show source of selected elements only" for the Ant Editor
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/EditorUtility.java
}
		}
		return null;
	}
	private static void initializeHighlightRange(IEditorPart editorPart) {
		if (editorPart instanceof ITextEditor) {
			TogglePresentationAction toggleAction= new TogglePresentationAction();
			
			toggleAction.setEditor((ITextEditor)editorPart);
			
			toggleAction.setEditor(null);
		}
	}
	
	/**
	 *@deprecated	Made it public again for java debugger UI.
	 */
	public static String getEditorID(IEditorInput input, Object inputObject) {
		IEditorRegistry registry= PlatformUI.getWorkbench().getEditorRegistry();
		String inputName= input.getName();
		/*
		 * XXX: This is code copied from IDE.openEditor
		 *      Filed bug 50285 requesting API for getting the descriptor 
		 */ 
		
		
		IEditorDescriptor editorDescriptor= registry.getDefaultEditor(inputName);
		
		
		if (editorDescriptor == null && registry.isSystemInPlaceEditorAvailable(inputName))