public MTrimBar getTopTrim() { List<MTrimBar> trimBars = model.getTrimBars(); for (MTrimBar bar : trimBars) { if (MAIN_TOOLBAR_ID.equals(bar.getElementId())) { return bar; } } return null; }
for (MTrimBar bar : topWin.getTrimBars()) { for (MTrimElement item : bar.getChildren()) { String id = item.getElementId();
for (MTrimBar bar : topWin.getTrimBars()) { for (MTrimElement item : bar.getChildren()) { String id = item.getElementId();
@Override public MTrimBar getTrim(MTrimmedWindow window, SideValue sv) { List<MTrimBar> bars = window.getTrimBars(); for (MTrimBar bar : bars) { if (bar.getSide() == sv) { return bar; } } // Didn't find a trim bar for the side, make one MTrimBar newBar = BasicFactoryImpl.eINSTANCE.createTrimBar(); // Assign default ids to the trim bars to match legacy eclipse if (sv == SideValue.TOP) { newBar.setElementId("org.eclipse.ui.main.menu"); //$NON-NLS-1$ } else if (sv == SideValue.BOTTOM) { newBar.setElementId("org.eclipse.ui.trim.status"); //$NON-NLS-1$ } else if (sv == SideValue.LEFT) { newBar.setElementId("org.eclipse.ui.trim.vertical1"); //$NON-NLS-1$ } else if (sv == SideValue.RIGHT) { newBar.setElementId("org.eclipse.ui.trim.vertical2"); //$NON-NLS-1$ } newBar.setSide(sv); window.getTrimBars().add(newBar); return newBar; }
for (MTrimBar trimBar : trimmedWindow.getTrimBars()) { cleanUpTrimBar(trimBar);
List<MTrimBar> bars = tw.getTrimBars(); for (MTrimBar bar : bars) { findElementsRecursive(bar, clazz, matcher, elements, searchFlags);
Shell shell = (Shell) wbwModel.getWidget(); MTrimmedWindow tWindow = (MTrimmedWindow) wbwModel; for (MTrimBar trimBar : tWindow.getTrimBars()) { renderer.createGui(trimBar, shell, wbwModel.getContext());
MTrimmedWindow tWindow = (MTrimmedWindow) wbwModel; List<MTrimBar> trimBars = new ArrayList<>( tWindow.getTrimBars()); for (MTrimBar trimBar : trimBars) { renderer.createGui(trimBar, shell, wbwModel.getContext());
for (MTrimBar tm : ((MTrimmedWindow) element).getTrimBars()) { if (tm.isToBeRendered() && isChildRenderedAndVisible(tm)) { WLayoutedWidget<MTrimBar> trimWidget = engineCreateWidget(tm);
for (MTrimBar trimBar : ((MTrimmedWindow) element).getTrimBars()) { trimBar.updateLocalization(); updateLocalization(trimBar.getChildren());