2 * Created on May 15, 2003
3 *========================================================================
4 * Modifications history
5 *========================================================================
6 * $Log: not supported by cvs2svn $
7 * Revision 1.1 2004/02/26 02:25:42 agfitzp
8 * renamed packages to match xml & css
10 * Revision 1.1 2004/02/05 03:10:08 agfitzp
13 * Revision 1.1.2.1 2003/12/12 21:37:24 agfitzp
14 * Experimental work for Classes view
16 * Revision 1.2 2003/05/30 20:53:09 agfitzp
17 * 0.0.2 : Outlining is now done as the user types. Some other bug fixes.
19 *========================================================================
21 package net.sourceforge.phpeclipse.js.core.model;
23 import org.eclipse.core.resources.IFile;
28 public class JSFunctionElement extends JSElement
31 protected String arguments;
37 public JSFunctionElement(IFile aFile, String aName, String argumentString, int offset, int length)
39 super(aFile, aName, offset, length);
40 arguments = argumentString;
44 * Method declared on IWorkbenchAdapter
49 public String getLabel(Object o)
51 String firstPart = name;
52 if(firstPart.length() <= 0){
53 firstPart = "<anonymous>";
56 return firstPart + arguments;
67 public String getArguments()