Fix hover functionality.
[phpeclipse.git] / net.sourceforge.phpeclipse.phphelp / src / net / sourceforge / phpdt / phphelp / actions / PHPFunctionHelpResource.java
1 /**********************************************************************
2  Copyright (c) 2000, 2002 IBM Corp. and others.
3  All rights reserved. This program and the accompanying materials
4  are made available under the terms of the Common Public License v1.0
5  which accompanies this distribution, and is available at
6  http://www.eclipse.org/legal/cpl-v10.html
7
8  Contributors:
9  IBM Corporation - Initial implementation
10  www.phpeclipse.de
11  **********************************************************************/
12 package net.sourceforge.phpdt.phphelp.actions;
13
14 import org.eclipse.help.IHelpResource;
15
16 /**
17  * 
18  */
19 public class PHPFunctionHelpResource implements IHelpResource {
20
21         private String word;
22
23         public PHPFunctionHelpResource(String word) {
24                 this.word = word;
25         }
26
27         /**
28          * Get standard PHPEclipse html help URL
29          * 
30          * @return String
31          */
32         public String getHref() {
33                 return "/net.sourceforge.phpeclipse.phphelp/doc/function." + word
34                                 + ".html";
35         }
36
37         public String getLabel() {
38                 return "PHP Context Help";
39         }
40
41 }