/** * Notifies that an item has been removed. * * <p>Subclasses are not expected to override this method. * * @param item the item contributed by the client */ protected void itemRemoved(IContributionItem item) { mapItemToWrapper.remove(item); item.setParent(null); }
/** * Notifies that an item has been added. * * <p>Subclasses are not expected to override this method. * * @param item the item contributed by the client * @param wrap the item contributed to the parent manager as a proxy for the item contributed by * the client */ protected void itemAdded(IContributionItem item, SubContributionItem wrap) { item.setParent(this); mapItemToWrapper.put(item, wrap); }