final int trimSize = treeToolBar.getSize().x - textItem.getWidth() - item1.getWidth() - item2.getWidth(); public void handleEvent(Event event) { final int toolbarWidth = treeToolBar.getSize().x; final int itemsWidth = textItem.getWidth() + item1.getWidth() + item2.getWidth(); final int separatorWidth = toolbarWidth - itemsWidth - trimSize; separator.setWidth(separatorWidth);
int left = clientArea.x; int top = clientArea.y; int width = getWidth(); int height = getHeight(); int index = parent.indexOf( this );
int toolItemWidth = toolBar.getItems()[0].getWidth(); int minimumWidth = toolItemWidth * getMinimumItemsToShow(); coolItem.setMinimumSize(minimumWidth, toolBarSize.y);
int toolItemWidth = toolBar.getItems()[0].getWidth(); int minimumWidth = toolItemWidth * getMinimumItemsToShow(); coolItem.setMinimumSize(minimumWidth, toolBarSize.y);
int toolItemWidth = toolBar.getItems()[0].getWidth(); int minimumWidth = toolItemWidth * getMinimumItemsToShow(); coolItem.setMinimumSize(minimumWidth, toolBarSize.y);
size.y = bar.getItem(0).getBounds().height; } else { size.x = bar.getItem(0).getWidth();