added code completion for HTML mode
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / PHPEditor.java
index 04f7d9e..71f26dc 100644 (file)
@@ -191,27 +191,27 @@ public class PHPEditor extends TextEditor {
     return super.getAdapter(required);
   }
 
-  public void openContextHelp() {
-    IDocument doc = this.getDocumentProvider().getDocument(this.getEditorInput());
-    ITextSelection selection = (ITextSelection) this.getSelectionProvider().getSelection();
-    int pos = selection.getOffset();
-    String word = getFunctionName(doc, pos);
-    openContextHelp(word);
-  }
-
-  private void openContextHelp(String word) {
-    open(word);
-  }
-
-  public static void open(String word) {
-    IHelp help = WorkbenchHelp.getHelpSupport();
-    if (help != null) {
-      IHelpResource helpResource = new PHPFunctionHelpResource(word);
-      WorkbenchHelp.getHelpSupport().displayHelpResource(helpResource);
-    } else {
-      //   showMessage(shell, dialogTitle, ActionMessages.getString("Open help not available"), false); //$NON-NLS-1$
-    }
-  }
+//  public void openContextHelp() {
+//    IDocument doc = this.getDocumentProvider().getDocument(this.getEditorInput());
+//    ITextSelection selection = (ITextSelection) this.getSelectionProvider().getSelection();
+//    int pos = selection.getOffset();
+//    String word = getFunctionName(doc, pos);
+//    openContextHelp(word);
+//  }
+//
+//  private void openContextHelp(String word) {
+//    open(word);
+//  }
+//
+//  public static void open(String word) {
+//    IHelp help = WorkbenchHelp.getHelpSupport();
+//    if (help != null) {
+//      IHelpResource helpResource = new PHPFunctionHelpResource(word);
+//      WorkbenchHelp.getHelpSupport().displayHelpResource(helpResource);
+//    } else {
+//      //   showMessage(shell, dialogTitle, ActionMessages.getString("Open help not available"), false); //$NON-NLS-1$
+//    }
+//  }
 
   private String getFunctionName(IDocument doc, int pos) {
     Point word = PHPWordExtractor.findWord(doc, pos);