added old hover behaviour;
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / PHPSourceViewerConfiguration.java
index c870909..627a046 100644 (file)
@@ -289,19 +289,20 @@ public class PHPSourceViewerConfiguration extends SourceViewerConfiguration {
                                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)