RC2 compatibility
[phpeclipse.git] / net.sourceforge.phpeclipse.phphelp / src / net / sourceforge / phpdt / phphelp / actions / PHPEclipseShowContextHelp.java
index 6895f51..73957ae 100644 (file)
@@ -18,7 +18,6 @@ import net.sourceforge.phpdt.phphelp.PHPHelpPlugin;
 import net.sourceforge.phpeclipse.phpeditor.PHPEditor;
 import net.sourceforge.phpeclipse.phpeditor.php.PHPWordExtractor;
 
-import org.eclipse.help.IHelp;
 import org.eclipse.jface.action.IAction;
 import org.eclipse.jface.preference.IPreferenceStore;
 import org.eclipse.jface.text.BadLocationException;
@@ -91,13 +90,14 @@ public class PHPEclipseShowContextHelp extends ActionDelegate implements IEditor
       } catch (IOException e) {
       }
     } else {
-      IHelp help = WorkbenchHelp.getHelpSupport();
-      if (help != null) {
+//      IHelp help = WorkbenchHelp.getHelpSupport();
+//      if (help != null) {
         PHPFunctionHelpResource helpResource = new PHPFunctionHelpResource(word);
-        WorkbenchHelp.getHelpSupport().displayHelpResource(helpResource);
-      } else {
+        WorkbenchHelp.displayHelpResource(helpResource.getHref());
+        //getHelpSupport().displayHelpResource(helpResource);
+//      } else {
         //   showMessage(shell, dialogTitle, ActionMessages.getString("Open help not available"), false); //$NON-NLS-1$
-      }
+//      }
     }
   }