@Override public void processContents(MElementContainer<MUIElement> me) { // Lazy Loading: here we only process the contents through childAdded, // we specifically do not render them IPresentationEngine renderer = (IPresentationEngine) context .get(IPresentationEngine.class.getName()); for (MUIElement element : me.getChildren()) { if (!element.isToBeRendered() || !element.isVisible()) continue; boolean lazy = true; // Special case: we also render any placeholder that refers to // an *existing* part, this doesn't break lazy loading since the // part is already there...see bug 378138 for details if (element instanceof MPlaceholder) { MPlaceholder ph = (MPlaceholder) element; if (ph.getRef() instanceof MPart && ph.getRef().getWidget() != null) { lazy = false; } } if (lazy) { createTab(me, element); } else { renderer.createGui(element); } } }
createTab(me, element); } else { renderer.createGui(element);