Refreshes this viewer starting with the given element. Labels are updated as described in
refresh(boolean updateLabels)
. The methods attempts to preserve the selection.
Unlike the update
methods, this handles structural changes to the given element (e.g. addition or removal of children). If only the given element needs updating, it is more efficient to use the update
methods.
Subclasses who can provide this feature can open this method for the public
@param element the element
@param updateLabels
true
to update labels for existing elements,
false
to only update labels as needed, assuming that labels for existing elements are unchanged.
@param reveal
true
to make the preserved selection visible afterwards
@since 3.3