- RowLayout buttonsLayout = new RowLayout(SWT.HORIZONTAL);
- buttonsLayout.pack = false;
- buttons.setLayout(buttonsLayout);
- Button delete = new Button(buttons, SWT.FLAT);
- delete.setImage(ArgeoSuiteIcon.delete.getSmallIcon(theme));
- // int size = ArgeoSuiteIcon.delete.getSmallIconSize();
- // delete.setBounds(delete.getBounds().x,delete.getBounds().y,size,size);
- // delete.setSize(size, size);
+ buttons.setLayout(CmsUiUtils.noSpaceGridLayout());
+ ToolBar toolBar = new ToolBar(buttons, SWT.NONE);
+ toolBar.setLayoutData(new GridData(SWT.END, SWT.TOP, false, false));
+ ToolItem deleteItem = new ToolItem(toolBar, SWT.PUSH);
+ deleteItem.setImage(SuiteIcon.delete.getSmallIcon(theme));
+ deleteItem.setEnabled(false);