Source:
private void addDiagramContributionItems() { addContributionItem(diagramContributionItems, ARRANGE_SELECTION, contributionFactory.createSelectMenuManager()); addContributionItem(diagramContributionItems, ARRANGE_SELECTION, contributionFactory.createArrangeMenuManager(part)); addContributionItem(diagramContributionItems, REFRESH, contributionFactory.createRefreshContribution()); addContributionItem(diagramContributionItems, LAYER_FILTER, contributionFactory.createConcernContribution(part)); addContributionItem(diagramContributionItems, LAYER_FILTER, contributionFactory.createFilterContribution(part, manager)); addContributionItem(diagramContributionItems, LAYER_FILTER, contributionFactory.createLayerContribution(part, manager)); addContributionItem(diagramContributionItems, HIDE_PIN, contributionFactory.createSelectPinnedElementsContribution(part)); addContributionItem(diagramContributionItems, HIDE_PIN, contributionFactory.createSelectHiddenElementsContribution(part)); addContributionItem(diagramContributionItems, PAST, contributionFactory.createPasteFormatContribution(part)); addContributionItem(diagramContributionItems, ZOOM, contributionFactory.createZoomContribution(part)); addContributionItem(diagramContributionItems, ZOOM, contributionFactory.createZoomOutContribution(part)); addContributionItem(diagramContributionItems, ZOOM, contributionFactory.createZoomInContribution(part)); addContributionItem(diagramContributionItems, EXPORT, contributionFactory.createVisibilityModeContributionItem(part, manager)); addContributionItem(diagramContributionItems, EXPORT, contributionFactory.createLayoutingModeContributionItem(part)); addContributionItem(diagramContributionItems, EXPORT, contributionFactory.createSaveAsImageContributionItem()); }

Target:
private void addDiagramContributionItems() { addContributionItem(diagramContributionItems, ARRANGE_SELECTION, contributionFactory.createSelectMenuManager()); addContributionItem(diagramContributionItems, ARRANGE_SELECTION, contributionFactory.createArrangeMenuManager(part)); addContributionItem(diagramContributionItems, REFRESH, contributionFactory.createRefreshContribution()); addContributionItem(diagramContributionItems, LAYER_FILTER, contributionFactory.createConcernContribution(part)); addContributionItem(diagramContributionItems, LAYER_FILTER, contributionFactory.createFilterContribution(part, manager)); addContributionItem(diagramContributionItems, LAYER_FILTER, contributionFactory.createLayerContribution(part, manager)); addContributionItem(diagramContributionItems, HIDE_PIN, contributionFactory.createSelectPinnedElementsContribution(part)); addContributionItem(diagramContributionItems, HIDE_PIN, contributionFactory.createSelectHiddenElementsContribution(part)); addContributionItem(diagramContributionItems, PAST, contributionFactory.createPasteFormatContribution(part)); addContributionItem(diagramContributionItems, ZOOM, contributionFactory.createZoomContribution(part)); addContributionItem(diagramContributionItems, ZOOM, contributionFactory.createZoomOutContribution(part)); addContributionItem(diagramContributionItems, ZOOM, contributionFactory.createZoomInContribution(part)); if (Boolean.getBoolean(SHOWING_MODE_SYSTEM_PROPERTY)) { addContributionItem(diagramContributionItems, EXPORT, contributionFactory.createShowingModeContributionItem(part, manager)); } addContributionItem(diagramContributionItems, EXPORT, contributionFactory.createLayoutingModeContributionItem(part)); addContributionItem(diagramContributionItems, EXPORT, contributionFactory.createSaveAsImageContributionItem()); }