use of org.eclipse.gef.AccessibleEditPart in project archi by archimatetool.
the class GraphicalViewerImpl method reveal.
/**
* Reveals the specified editpart by using {@link ExposeHelper}s. A
* bottom-up scan through the parent-chain is performed, looking for expose
* helpers along the way, and asking them to expose the given editpart.
*
* @see org.eclipse.gef.EditPartViewer#reveal(EditPart)
*/
@Override
public void reveal(EditPart part) {
if (part == null)
return;
EditPart current = part.getParent();
while (current != null) {
ExposeHelper helper = current.getAdapter(ExposeHelper.class);
if (helper != null)
helper.exposeDescendant(part);
current = current.getParent();
}
AccessibleEditPart acc = part.getAdapter(AccessibleEditPart.class);
if (acc != null)
getControl().getAccessible().setFocus(acc.getAccessibleID());
}
Aggregations