/** * Returns the control for this manager. * * @return the control, or <code>null</code> if none * @since 3.2 */ @Override public Control getControl2() { return getControl(); }
/** * Creates and returns this manager's cool bar control. Does not create a * new control if one already exists. * * @param parent * the parent control * @return the cool bar control * @since 3.2 */ @Override public Control createControl2(Composite parent) { return createControl(parent); }
@Override public Control createControl2(Composite parent) { return createControl(parent); }
/** * 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(); }
IToolBarContributionItem createToolBarContributionItem(final IToolBarManager manager, PlaceholderContributionItem item) { IToolBarContributionItem toolBarContributionItem = new ToolBarContributionItem2(manager, item.getId()); toolBarContributionItem.setCurrentHeight(item.getHeight()); toolBarContributionItem.setCurrentWidth(item.getWidth()); toolBarContributionItem.setMinimumItemsToShow(item.getMinimumItemsToShow()); toolBarContributionItem.setUseChevron(item.getUseChevron()); return toolBarContributionItem; }
@Override public Control getControl2() { return getControl(); }
private void firePropertyChange(final String propertyName, final Object oldValue, final Object newValue) { if (listenerList != null) { firePropertyChange(new PropertyChangeEvent(this, propertyName, oldValue, newValue)); } }
/** * Returns whether the contribution list is visible. If the visibility is * <code>true</code> then each item within the manager appears within the * parent manager. Otherwise, the items are not visible. * * @return <code>true</code> if the manager is visible */ private boolean isVisible() { if (toolBarContributionItem != null) { return toolBarContributionItem.isVisible(); } return false; }
@Override public IToolBarContributionItem createToolBarContributionItem(IToolBarManager toolBarManager, String id) { return new ToolBarContributionItem2(toolBarManager, id); }
/** * */ public void resetToolBarLayout() { ICoolBarManager2 mgr = (ICoolBarManager2) legacyWindow.getCoolBarManager2(); mgr.resetItemOrder(); }
@Override public IToolBarManager createToolBarManager() { if (proxy != null) { return proxy.createToolBarManager(); } return new ToolBarManager2(SWT.WRAP | SWT.FLAT | SWT.RIGHT); }
/** * Returns the control for this manager. * * @return the control, or <code>null</code> if none */ public Control getControl2() { return getControl(); }
/** * Creates and returns this manager's cool bar control. Does not create a * new control if one already exists. * * @param parent * the parent control * @return the cool bar control * @since 3.2 */ @Override public Control createControl2(Composite parent) { return createControl(parent); }
public Control createControl2(Composite parent) { return createControl(parent); }
@Override public Control getControl2() { return getControl(); }
private void firePropertyChange(final String propertyName, final Object oldValue, final Object newValue) { if (listenerList != null) { firePropertyChange(new PropertyChangeEvent(this, propertyName, oldValue, newValue)); } }
/** * Returns the control for this manager. * * @return the control, or <code>null</code> if none * @since 3.2 */ @Override public Control getControl2() { return getControl(); }
/** * Creates and returns this manager's cool bar control. Does not create a * new control if one already exists. * * @param parent * the parent control * @return the cool bar control */ public Control createControl2(Composite parent) { return createControl(parent); }
@Override public Control createControl2(Composite parent) { return createControl(parent); }
public Control getControl2() { return getControl(); }