How to expand TreeViewer
programmatically?
If I use underlying Tree.setExpanded(true)
,
action1 = new Action() {
public void run() {
viewer.getTree().getItems()[0].setExpanded(true);
}
};
element does not appear:
If I use mouse clicks, branch expands ok.