use of org.eclipse.scout.rt.client.ui.desktop.AbstractDesktop in project scout.rt by eclipse.
the class OutlineDeepLinkHandlerTest method addOutlineToDesktop.
/**
* Adds an outline to the desktop by reflection.
*/
private void addOutlineToDesktop(IDesktop desktop, IOutline outline) throws ReflectiveOperationException {
AbstractDesktop ad = (AbstractDesktop) desktop;
Field field = AbstractDesktop.class.getDeclaredField("m_availableOutlines");
field.setAccessible(true);
@SuppressWarnings("unchecked") List<IOutline> outlines = (List<IOutline>) field.get(ad);
outlines.add(outline);
}
Aggregations