return new JavaEditorTextHoverProxy(hoverDescs[i], getEditor());
i++;
}
- if (fEditor != null) {
- IEditorInput editorInput = fEditor.getEditorInput();
- if (editorInput instanceof IFileEditorInput) {
- try {
- IFile f = ((IFileEditorInput) editorInput).getFile();
- return new PHPTextHover(f.getProject());
- } catch (NullPointerException e) {
- // this exception occurs, if getTextHover is called by
- // preference pages !
- }
- }
- }
- return new PHPTextHover(null);
+ return null;
+// if (fEditor != null) {
+// IEditorInput editorInput = fEditor.getEditorInput();
+// if (editorInput instanceof IFileEditorInput) {
+// try {
+// IFile f = ((IFileEditorInput) editorInput).getFile();
+// return new PHPTextHover(f.getProject());
+// } catch (NullPointerException e) {
+// // this exception occurs, if getTextHover is called by
+// // preference pages !
+// }
+// }
+// }
+// return new PHPTextHover(null);
}
/*
* @see SourceViewerConfiguration#getTextHover(ISourceViewer, String)