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);