@Override 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)); } }
private void firePropertyChange(final PropertyChangeEvent event) { final Object[] list = getListeners(); for (int i = 0; i < list.length; ++i) { ((IPropertyChangeListener) list[i]).propertyChange(event); } }
@Override public IToolBarManager createToolBarManager() { if (proxy != null) { return proxy.createToolBarManager(); } return new ToolBarManager2(SWT.WRAP | SWT.FLAT | SWT.RIGHT); }
private void firePropertyChange(final String propertyName, final Object oldValue, final Object newValue) { if (listenerList != null) { firePropertyChange(new PropertyChangeEvent(this, propertyName, oldValue, newValue)); } }
private void firePropertyChange(final PropertyChangeEvent event) { final Object[] list = getListeners(); for (Object element : list) { ((IPropertyChangeListener) element).propertyChange(event); } }
coolItemToolBarMgr = toolBarContributionItem.getToolBarManager(); if (coolItemToolBarMgr == null) { coolItemToolBarMgr = new ToolBarManager2(SWT.FLAT); toolBarContributionItem = new ToolBarContributionItem2(coolItemToolBarMgr, type); coolItemToolBarMgr = new ToolBarManager2(SWT.FLAT); if ((coolBarManager instanceof ContributionManager) && (foundItem instanceof PlaceholderContributionItem)) {
@Override protected void relayout(ToolBar layoutBar, int oldCount, int newCount) { super.relayout(layoutBar, oldCount, newCount); firePropertyChange(PROP_LAYOUT, Integer.valueOf(oldCount), Integer.valueOf(newCount)); } }
@Override public Control getControl2() { return getControl(); }
private void firePropertyChange(final PropertyChangeEvent event) { final Object[] list = getListeners(); for (int i = 0; i < list.length; ++i) { ((IPropertyChangeListener) list[i]).propertyChange(event); } }
public Control createControl2(Composite parent) { return createControl(parent); }
@Override protected void relayout(ToolBar layoutBar, int oldCount, int newCount) { super.relayout(layoutBar, oldCount, newCount); firePropertyChange(PROP_LAYOUT, Integer.valueOf(oldCount), Integer.valueOf(newCount)); } }
public Control getControl2() { return getControl(); }
@Override public Control createControl2(Composite parent) { return createControl(parent); }
private void firePropertyChange(final String propertyName, final Object oldValue, final Object newValue) { if (listenerList != null) { firePropertyChange(new PropertyChangeEvent(this, propertyName, oldValue, newValue)); } }
public int getItemCount() { ToolBar toolBar = getControl(); if (toolBar == null || toolBar.isDisposed()) { return 0; } return toolBar.getItemCount(); }
protected void relayout(ToolBar layoutBar, int oldCount, int newCount) { super.relayout(layoutBar, oldCount, newCount); firePropertyChange(PROP_LAYOUT, new Integer(oldCount), new Integer(newCount)); } }
@Override public int getItemCount() { ToolBar toolBar = getControl(); if (toolBar == null || toolBar.isDisposed()) { return 0; } return toolBar.getItemCount(); }
@Override public int getItemCount() { ToolBar toolBar = getControl(); if (toolBar == null || toolBar.isDisposed()) { return 0; } return toolBar.getItemCount(); }