@Override public void processContents(MElementContainer<MUIElement> container) { try { processedContent++; super.processContents(container); } finally { processedContent--; if (processedContent == 0) { forceLayout(container); } } }
@Override public void processContents(MElementContainer<MUIElement> container) { // TODO Auto-generated method stub super.processContents(container); IPresentationEngine renderer = (IPresentationEngine) context .get(IPresentationEngine.class.getName()); MPerspective persp = (MPerspective) ((MUIElement) container); Shell shell = ((Composite) persp.getWidget()).getShell(); for (MWindow dw : persp.getWindows()) { renderer.createGui(dw, shell, persp.getContext()); } }
@Override public void processContents(MElementContainer<MUIElement> me) { if (!(((MUIElement) me) instanceof MTrimBar)) return; super.processContents(me); IEclipseContext ctx = getContext(me); ExpressionContext eContext = new ExpressionContext(ctx); MElementContainer<?> trimObj = me; MTrimBar trimModel = (MTrimBar) trimObj; ArrayList<MTrimContribution> toContribute = new ArrayList<MTrimContribution>(); ContributionsAnalyzer.gatherTrimContributions(trimModel, application.getTrimContributions(), trimModel.getElementId(), toContribute, eContext); addTrimContributions(trimModel, toContribute, ctx, eContext); }
@Override public void processContents(MElementContainer<MUIElement> container) { super.processContents(container); IEclipseContext ctx = getContext(container); ExpressionContext eContext = new ExpressionContext(ctx); ArrayList<MToolBarContribution> toContribute = new ArrayList<MToolBarContribution>(); MElementContainer<?> toolbarObj = container; MToolBar toolbarModel = (MToolBar) toolbarObj; ContributionsAnalyzer.gatherToolBarContributions(toolbarModel, application.getToolBarContributions(), toolbarModel.getElementId(), toContribute, eContext); addToolBarContributions(toolbarModel, toContribute, ctx, eContext, pendingCleanup); }
@Override public void processContents(MElementContainer<MUIElement> me) { if (!(((MUIElement) me) instanceof MTrimBar)) return; super.processContents(me); IEclipseContext ctx = getContext(me); ExpressionContext eContext = new ExpressionContext(ctx); MElementContainer<?> trimObj = me; MTrimBar trimModel = (MTrimBar) trimObj; ArrayList<MTrimContribution> toContribute = new ArrayList<>(); ContributionsAnalyzer.gatherTrimContributions(trimModel, application.getTrimContributions(), trimModel.getElementId(), toContribute, eContext); addTrimContributions(trimModel, toContribute, ctx, eContext); }
@Override public void processContents(MElementContainer<MUIElement> container) { super.processContents(container); IPresentationEngine renderer = context.get(IPresentationEngine.class); MPerspective persp = (MPerspective) ((MUIElement) container); Shell shell = ((Composite) persp.getWidget()).getShell(); for (MWindow dw : persp.getWindows()) { renderer.createGui(dw, shell, persp.getContext()); } }
@Override public void processContents(MElementContainer<MUIElement> container) { if (container.getChildren().size() == 0) { Object obj = container.getWidget(); if (obj instanceof MenuItem) { MenuItem mi = (MenuItem) obj; if (mi.getMenu() == null) { mi.setMenu(new Menu(mi)); } Menu menu = mi.getMenu(); MenuItem menuItem = new MenuItem(menu, SWT.PUSH); menuItem.setText(MenuManagerRendererFilter.NUL_MENU_ITEM); menuItem.setEnabled(false); } } super.processContents(container); Object obj = container.getWidget(); Object menuObj = container; if ((obj instanceof Menu) && (((Menu) obj).getStyle() & SWT.BAR) != 0 && (menuObj instanceof MMenu)) { MMenu menuModel = (MMenu) menuObj; IEclipseContext ctx = getContext(container); ExpressionContext eContext = new ExpressionContext(ctx); ArrayList<MMenuContribution> toContribute = new ArrayList<MMenuContribution>(); ContributionsAnalyzer.gatherMenuContributions(menuModel, application.getMenuContributions(), menuModel.getElementId(), toContribute, eContext, false); addMenuBarContributions(menuModel, toContribute, ctx, eContext); } }
return; MWindow wbwModel = (MWindow) ((MUIElement) me); super.processContents(me);