void handleChildrenRemove(@NonNull MPartSashContainer parent, Collection<MPartSashContainerElement> elements) { Iterator<MPartSashContainerElement> iterator = elements.iterator(); while (iterator.hasNext()) { MPartSashContainerElement element = (MPartSashContainerElement) iterator.next(); if (element.isToBeRendered() && element.getWidget() != null) { hideChild(parent, element); } } checkSelectedElement(parent); }
void handleChildrenRemove(@NonNull MCompositePart parent, Collection<MPartSashContainerElement> elements) { Iterator<MPartSashContainerElement> iterator = elements.iterator(); while (iterator.hasNext()) { MPartSashContainerElement element = iterator.next(); if (element.isToBeRendered() && element.getWidget() != null) { hideChild(parent, element); } } checkSelectedElement(parent); }
void handleChildrenAddition(@NonNull MPartSashContainer parent, Collection<MPartSashContainerElement> elements) { Iterator<MPartSashContainerElement> iterator = elements.iterator(); while (iterator.hasNext()) { MPartSashContainerElement element = (MPartSashContainerElement) iterator.next(); if (element.isToBeRendered()) { if (element.getWidget() == null) { engineCreateWidget(element); } else { childRendered(parent, element); } } } }
private void correctSelectedElements() { List<MPartSashContainerElement> perspChildren = perspective.getChildren(); if (perspective.getSelectedElement() == null && !perspChildren.isEmpty()) { for (MPartSashContainerElement child : perspChildren) { if (child.isToBeRendered()) { perspective.setSelectedElement(child); break; } } } for (MPartSashContainerElement child : perspChildren) { correctSelectedElements(child); } }
@Override public void doProcessContent(MPartSashContainer element) { WSash<N> sash = getWidget(element); if( sash == null ) { getLogger().error("Could not find widget for '"+element+"'"); //$NON-NLS-1$//$NON-NLS-2$ return; } List<WLayoutedWidget<MPartSashContainerElement>> list = new ArrayList<WLayoutedWidget<MPartSashContainerElement>>(); for (MPartSashContainerElement e : element.getChildren()) { if (e.isToBeRendered()) { WLayoutedWidget<MPartSashContainerElement> widget = engineCreateWidget(e); if (widget != null && isChildRenderedAndVisible(e)) { list.add(widget); } } } sash.addItems(list); }
List<WLayoutedWidget<MPartSashContainerElement>> list = new ArrayList<WLayoutedWidget<MPartSashContainerElement>>(); for (MPartSashContainerElement e : element.getChildren()) { if (e.isToBeRendered()) { WLayoutedWidget<MPartSashContainerElement> w = engineCreateWidget(e); if (w != null && isChildRenderedAndVisible(e)) {
if (e.isToBeRendered()) { WLayoutedWidget<MPartSashContainerElement> widget = engineCreateWidget(e); if (widget != null && isChildRenderedAndVisible(e)) {