|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.colorer.eclipse.outline.ParseTreeOutliner
public class ParseTreeOutliner
Object used to store parse tree and showup it in Outline view
Constructor Summary | |
---|---|
ParseTreeOutliner()
|
Method Summary | |
---|---|
void |
addListener(OutlineListener listener)
|
void |
addRegion(int lno,
java.lang.String line,
int sx,
int ex,
Region region)
Informs handler about lexical region in line. |
void |
attachOutliner(TextColorer editor)
Attaches the outliner, specified by this interface to the editor, causing this outliner to recieve parse information. |
void |
clear()
Cleans out current outline elements. |
void |
clear(java.util.Vector list,
int topLine)
|
void |
clearLine(int lno,
java.lang.String line)
Clear line event. |
void |
detachOutliner(TextColorer editor)
Detaches the outliner, specified by this interface |
void |
endParsing(int lno)
End of text parsing. |
void |
enterScheme(int lno,
java.lang.String line,
int sx,
int ex,
Region region,
java.lang.String scheme)
Informs handler about entering into specified scheme. |
java.lang.Object |
getAdapter(java.lang.Class adapter)
|
java.lang.Object[] |
getChildren(java.lang.Object o)
|
Region |
getFilter()
Returns filter region, used by this handler. |
ImageDescriptor |
getImageDescriptor(java.lang.Object object)
|
java.lang.String |
getLabel(java.lang.Object o)
|
java.lang.Object |
getParent(java.lang.Object o)
|
void |
leaveScheme(int lno,
java.lang.String line,
int sx,
int ex,
Region region,
java.lang.String scheme)
Informs handler about leaveing specified scheme. |
void |
modifyEvent(int topLine)
Informs EditorListener object about text modification event. |
protected void |
notifyUpdate()
|
void |
removeListener(OutlineListener listener)
|
void |
setHierarchy(boolean hierarchy)
|
void |
setSorting(boolean sorting)
|
void |
startParsing(int lno)
Start of text parsing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParseTreeOutliner()
Method Detail |
---|
public Region getFilter()
RegionHandler
getFilter
in interface RegionHandler
public void clear()
IWorkbenchOutlineSource
clear
in interface IWorkbenchOutlineSource
public void clear(java.util.Vector list, int topLine)
public void startParsing(int lno)
RegionHandler
startParsing
in interface RegionHandler
lno
- Start line numberpublic void endParsing(int lno)
RegionHandler
endParsing
in interface RegionHandler
lno
- End line numberpublic void clearLine(int lno, java.lang.String line)
RegionHandler
clearLine
in interface RegionHandler
lno
- Line numberpublic void addRegion(int lno, java.lang.String line, int sx, int ex, Region region)
RegionHandler
addRegion
in interface RegionHandler
lno
- Current line numbersx
- Start X position of region in lineex
- End X position of region in lineregion
- Region informationpublic void enterScheme(int lno, java.lang.String line, int sx, int ex, Region region, java.lang.String scheme)
RegionHandler
region
is used to specify
scheme background region information.
If text is parsed not from the first line, this method is called
with fake parameters to compensate required scheme structure.
enterScheme
in interface RegionHandler
lno
- Current line numbersx
- Start X position of region in lineex
- End X position of region in lineregion
- Scheme Region information (background)scheme
- Additional Scheme informationpublic void leaveScheme(int lno, java.lang.String line, int sx, int ex, Region region, java.lang.String scheme)
RegionHandler
region
is used to specify
scheme background region information.
If text parse process ends, but current schemes stack is not balanced
(this can happends because of bad balanced structure of source text,
or partial text parse) this method is not called for unbalanced
levels.
leaveScheme
in interface RegionHandler
lno
- Current line numbersx
- Start X position of region in lineex
- End X position of region in lineregion
- Scheme Region information (background)scheme
- Additional Scheme informationpublic void modifyEvent(int topLine)
EditorListener
modifyEvent
in interface EditorListener
topLine
- Topmost modified line of text.public java.lang.Object[] getChildren(java.lang.Object o)
public ImageDescriptor getImageDescriptor(java.lang.Object object)
public java.lang.String getLabel(java.lang.Object o)
public java.lang.Object getParent(java.lang.Object o)
public java.lang.Object getAdapter(java.lang.Class adapter)
public void setHierarchy(boolean hierarchy)
setHierarchy
in interface IWorkbenchOutlineSource
public void setSorting(boolean sorting)
setSorting
in interface IWorkbenchOutlineSource
public void attachOutliner(TextColorer editor)
IWorkbenchOutlineSource
attachOutliner
in interface IWorkbenchOutlineSource
public void detachOutliner(TextColorer editor)
IWorkbenchOutlineSource
detachOutliner
in interface IWorkbenchOutlineSource
public void addListener(OutlineListener listener)
addListener
in interface IOutlineSource
public void removeListener(OutlineListener listener)
removeListener
in interface IOutlineSource
protected void notifyUpdate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |