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;
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;
}
return parent;
}
- public abstract ImageDescriptor getImage();
};
\ No newline at end of file