X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/PHPSegment.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/PHPSegment.java index 628d254..16da5e5 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/PHPSegment.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/PHPSegment.java @@ -1,13 +1,12 @@ package net.sourceforge.phpdt.internal.compiler.parser; -import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.jface.text.Position; /** * * @author khartlage */ -public abstract class PHPSegment { +public abstract class PHPSegment implements Outlineable { protected String name; private Position position; private Object parent; @@ -18,6 +17,14 @@ public abstract class PHPSegment { this.position = new Position(index, name.length()); } + /** + * Return the name of the segment. + * @return the name of the segment + */ + public String getName() { + return name; + } + public String toString() { return name; } @@ -30,5 +37,4 @@ public abstract class PHPSegment { return parent; } - public abstract ImageDescriptor getImage(); }; \ No newline at end of file