Bug 62849 opening .options files uses external editor too often
should fix for 3.0 - not critical for 3.0 M9 steps to reproduce: 1. search for files named .options 2. try to open from Search view ==> tries to open external editor Navigator or Package Explorer open it in internal text editor
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchEditorOpener.java
import org.eclipse.ui.IEditorDescriptor;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IEditorReference;
import org.eclipse.ui.IEditorRegistry;
import org.eclipse.ui.IReusableEditor;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.ide.IDE;
import org.eclipse.ui.part.FileEditorInput;
public class JavaSearchEditorOpener {
	private IEditorPart fEditor;
	public IEditorPart open(Match match) throws PartInitException, JavaModelException {
		IWorkbenchPage wbPage= JavaPlugin.getActivePage();
		Object element= getElementToOpen(match);
		if (SearchUI.reuseEditor())
			return showWithReuse(element, wbPage);
		else
			return showWithoutReuse(element, wbPage);
	}
	protected Object getElementToOpen(Match match) {
		return match.getElement();
	}
	private IEditorPart showWithoutReuse(Object element, IWorkbenchPage wbPage) throws PartInitException, JavaModelException {
		return EditorUtility.openInEditor(element, false);
	}
	private IEditorPart showWithReuse(Object element, IWorkbenchPage wbPage) throws JavaModelException {
		IFile file= getFile(element);
		if (file != null) {
			String editorID= getEditorID(file);