public final class SymbolTree
extends java.lang.Object
Constructor and Description |
---|
SymbolTree(org.eclipse.swt.widgets.Composite parent,
TopWindow top)
Create a tree displaying symbol structures.
|
Modifier and Type | Method and Description |
---|---|
void |
expand(Source source)
Expand tree node associated to source (if any).
|
Symbol[] |
getSelection()
Get symbols selected in tree.
|
org.eclipse.swt.widgets.Tree |
getTree()
Get visual representation of tree.
|
java.util.Collection<Symbol> |
getUnitSymbols()
Get all symbols in symbol tree denoting units (classes/theories).
|
void |
redraw(PackageSymbol root)
Redraw symbol structures.
|
void |
remove(Symbol symbol)
Remove subtree denoted by symbol.
|
void |
show(Symbol symbol)
Show tree item denoted by symbol.
|
void |
signalError(Symbol symbol)
Indicate that symbol has errors.
|
public SymbolTree(org.eclipse.swt.widgets.Composite parent, TopWindow top)
parent
- the parent widget.top
- the top window.public org.eclipse.swt.widgets.Tree getTree()
public Symbol[] getSelection()
public void redraw(PackageSymbol root)
root
- the symbol of the top-level package
(may be null, the tree is then erased)public void signalError(Symbol symbol)
symbol
- the symbol that has errors.public void expand(Source source)
source
- the source whose visual representation is to be expanded.public java.util.Collection<Symbol> getUnitSymbols()
public void remove(Symbol symbol)
symbol
- the symbol whose subtree (if any) is to be disposed.public void show(Symbol symbol)
symbol
- the symbol whose subtree (if any) is to be expanded.