/** * Constructs a new instance of <code>PlaceholderContributionItem</code> * from the item it is intended to replace. * * @param item * The item to be replaced; must not be <code>null</code>. */ PlaceholderContributionItem(final IToolBarContributionItem item) { item.saveWidgetState(); id = item.getId(); storedHeight = item.getCurrentHeight(); storedWidth = item.getCurrentWidth(); storedMinimumItems = item.getMinimumItemsToShow(); storedUseChevron = item.getUseChevron(); }