bug 1274348, superfluous newline at file end on formatting source
[phpeclipse.git] / net.sourceforge.phpeclipse.phphelp / src / net / sourceforge / phpdt / phphelp / actions / PHPEclipseShowContextHelp.java
index 6895f51..c822bb1 100644 (file)
@@ -7,7 +7,7 @@ http://www.eclipse.org/legal/cpl-v10.html
 
 Contributors:
     IBM Corporation - Initial implementation
-    Klaus Hartlage - www.eclipseproject.de
+    www.phpeclipse.de
 **********************************************************************/
 package net.sourceforge.phpdt.phphelp.actions;
 
@@ -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$
-      }
+//      }
     }
   }