Have a look at AbsractTreeViewer#expandToLevel(Object, int)
:
Expands all ancestors of the given element or tree path so that the given element becomes visible in this viewer's tree control, and then expands the subtree rooted at the given element to the given level.