misc changes
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / 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     Klaus Hartlage - www.eclipseproject.de
11 **********************************************************************/
12 package net.sourceforge.phpeclipse.phpeditor;
13
14 import org.eclipse.help.IHelpResource;
15
16 /**
17  * Example implementation for an <code>ITextHover</code> 
18  * which hovers over PHP code.
19  */
20 public class PHPFunctionHelpResource implements IHelpResource {
21
22   private String word;
23
24   public PHPFunctionHelpResource(String word) {
25     this.word = word;
26   }
27
28   public String getHref() {
29     return "/net.sourceforge.phpeclipse/doc/function." + word + ".html";
30   }
31
32   public String getLabel() {
33     return "PHP Context Help";
34   }
35
36 }