|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.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 RegionHandlerpublic 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 RegionHandlerlno - Start line numberpublic void endParsing(int lno)
RegionHandler
endParsing in interface RegionHandlerlno - End line number
public void clearLine(int lno,
java.lang.String line)
RegionHandler
clearLine in interface RegionHandlerlno - Line number
public void addRegion(int lno,
java.lang.String line,
int sx,
int ex,
Region region)
RegionHandler
addRegion in interface RegionHandlerlno - Current line numbersx - Start X position of region in lineex - End X position of region in lineregion - Region information
public void enterScheme(int lno,
java.lang.String line,
int sx,
int ex,
Region region,
java.lang.String scheme)
RegionHandlerregion 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 RegionHandlerlno - Current line numbersx - Start X position of region in lineex - End X position of region in lineregion - Scheme Region information (background)scheme - Additional Scheme information
public void leaveScheme(int lno,
java.lang.String line,
int sx,
int ex,
Region region,
java.lang.String scheme)
RegionHandlerregion 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 RegionHandlerlno - 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 EditorListenertopLine - 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 IWorkbenchOutlineSourcepublic void setSorting(boolean sorting)
setSorting in interface IWorkbenchOutlineSourcepublic void attachOutliner(TextColorer editor)
IWorkbenchOutlineSource
attachOutliner in interface IWorkbenchOutlineSourcepublic void detachOutliner(TextColorer editor)
IWorkbenchOutlineSource
detachOutliner in interface IWorkbenchOutlineSourcepublic void addListener(OutlineListener listener)
addListener in interface IOutlineSourcepublic void removeListener(OutlineListener listener)
removeListener in interface IOutlineSourceprotected void notifyUpdate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||