From 7c0519cd0df6b96753d3a52a8fad2cff50dcd513 Mon Sep 17 00:00:00 2001 From: kpouer Date: Sat, 25 Jan 2003 15:51:56 +0000 Subject: [PATCH 1/1] this segment can now have children so it extends PHPSegmentWithChildren --- .../phpparser/PHPFunctionDeclaration.java | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/phpparser/PHPFunctionDeclaration.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/phpparser/PHPFunctionDeclaration.java index ca6114d..fc558a8 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/phpparser/PHPFunctionDeclaration.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/phpparser/PHPFunctionDeclaration.java @@ -4,16 +4,25 @@ import net.sourceforge.phpdt.internal.ui.PHPUiImages; import org.eclipse.jface.resource.ImageDescriptor; /** - * + * A function declaration. * @author khartlage */ -public class PHPFunctionDeclaration extends PHPSegment { - +public class PHPFunctionDeclaration extends PHPSegmentWithChildren { + /** + * Create a function declaration. + * @param parent the parent object (it should be a php class) + * @param name the name of the function + * @param index where the function is in the file + */ public PHPFunctionDeclaration(Object parent, String name, int index) { super(parent, name, index); } + /** + * Get the image of a class. + * @return the image that represents a php class + */ public ImageDescriptor getImage() { return PHPUiImages.DESC_FUN; } -- 1.7.1