question: public void expandObject ( Object elementOrTreePath , int level ) { if ( checkBusy ( ) ) { return ; } Object parent = getParentElement ( elementOrTreePath ) ; if ( ! ( ( ( parent != null ) && getExpandedState ( parent ) ) || isRootElement ( elementOrTreePath ) ) ) { List < Object > objectsToExpand = createObjectList ( parent , new ArrayList < > ( ) ) ; if ( ! objectsToExpand . isEmpty ( ) ) { objectsToBeExpanded . addAll ( objectsToExpand ) ; } } objectsToBeExpanded . add ( elementOrTreePath ) ; Widget w = internalExpand ( elementOrTreePath , true ) ; if ( w != null ) { internalExpandToLevel ( w , level ) ; } }
target:  Expands all ancestors of the given element or tree path so that the given element becomes visible in this viewer's tree control and additionally expands the element if it has children.