Bug 148993 [Workbench] Wrong Javadoc for IDE.getEditorDescriptor
3.2 and latest 3.3 build The Javadoc of IDE.getEditorDescriptor(...) does not mention that as a very last resort it tries to find the editor descriptor for the default text editor i.e. IDEWorkbenchPlugin.DEFAULT_TEXT_EDITOR_ID (org.eclipse.ui.DefaultTextEditor)
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDE.java
}
		IEditorRegistry editorReg = PlatformUI.getWorkbench().getEditorRegistry();
		if (contentTypes != null) {
			for(int i = 0 ; i < contentTypes.length; i++) {
				IEditorDescriptor editorDesc = editorReg.getDefaultEditor(name, contentTypes[i]);
				if ((editorDesc != null) && (editorDesc.isInternal()))
					return page.openEditor(input, editorDesc.getId());
			}
		}
		
		IEditorDescriptor[] editors = editorReg.getEditors(name);
		if (editors != null) {
			for(int i = 0 ; i < editors.length; i++) {
				if ((editors[i] != null) && (editors[i].isInternal()))
					return page.openEditor(input, editors[i].getId());
			}
		}
		
		IEditorDescriptor textEditor = editorReg.findEditor(IDEWorkbenchPlugin.DEFAULT_TEXT_EDITOR_ID);
		if (textEditor == null)
			throw new PartInitException(IDEWorkbenchMessages.IDE_noFileEditorFound);
		return page.openEditor(input, textEditor.getId());
	}
	/**
	 * Save all dirty editors in the workbench whose editor input is a child
	 * resource of one of the <code>IResource</code>'s provided. Opens a
	 * dialog to prompt the user if <code>confirm</code> is true. Return true
	 * if successful. Return false if the user has canceled the command.
	 * 
	 * @since 3.0