Commit 00923b27 authored by Romain Bioteau's avatar Romain Bioteau
Browse files

BS-9035

Fix layout
parent b1054b2d
......@@ -175,7 +175,7 @@ public abstract class AbstractDataSection extends AbstractBonitaDescriptionSecti
protected Button createRemoveDataButton(final Composite parent) {
final Button removeButton = getWidgetFactory().createButton(parent, Messages.removeData, SWT.FLAT);
removeButton.setLayoutData(GridDataFactory.fillDefaults().hint(IDialogConstants.BUTTON_WIDTH, SWT.DEFAULT).create());
removeButton.setLayoutData(GridDataFactory.fillDefaults().minSize(IDialogConstants.BUTTON_WIDTH, SWT.DEFAULT).create());
removeButton.addListener(SWT.Selection, new Listener() {
@Override
......@@ -239,7 +239,7 @@ public abstract class AbstractDataSection extends AbstractBonitaDescriptionSecti
protected Button createMoveDataButton(final Composite parent) {
final Button moveData = getWidgetFactory().createButton(parent, Messages.moveData, SWT.FLAT);
moveData.setLayoutData(GridDataFactory.fillDefaults().hint(IDialogConstants.BUTTON_WIDTH, SWT.DEFAULT).create());
moveData.setLayoutData(GridDataFactory.fillDefaults().minSize(IDialogConstants.BUTTON_WIDTH, SWT.DEFAULT).create());
moveData.setToolTipText(Messages.moveData_tooltip);
moveData.addSelectionListener(new SelectionAdapter() {
......@@ -280,7 +280,7 @@ public abstract class AbstractDataSection extends AbstractBonitaDescriptionSecti
protected void createAddDataButton(final Composite parent) {
final Button addDataButton = getWidgetFactory().createButton(parent, Messages.addData, SWT.FLAT);
addDataButton.setLayoutData(GridDataFactory.fillDefaults().hint(IDialogConstants.BUTTON_WIDTH, SWT.DEFAULT).create());
addDataButton.setLayoutData(GridDataFactory.fillDefaults().minSize(IDialogConstants.BUTTON_WIDTH, SWT.DEFAULT).create());
addDataButton.addSelectionListener(new SelectionAdapter() {
@Override
......@@ -302,7 +302,7 @@ public abstract class AbstractDataSection extends AbstractBonitaDescriptionSecti
protected Button createEditDataButton(final Composite parent) {
final Button updateButton = getWidgetFactory().createButton(parent, Messages.updateData, SWT.FLAT);
updateButton.setLayoutData(GridDataFactory.fillDefaults().hint(IDialogConstants.BUTTON_WIDTH, SWT.DEFAULT).create());
updateButton.setLayoutData(GridDataFactory.fillDefaults().minSize(IDialogConstants.BUTTON_WIDTH, SWT.DEFAULT).create());
updateButton.addListener(SWT.Selection, new Listener() {
@Override
......
......@@ -373,7 +373,7 @@ public abstract class AbstractFormsSection extends AbstractBonitaDescriptionSect
protected Button createAddFormButton(final Composite buttonsComposite, final EStructuralFeature feature) {
final Button addButton = getWidgetFactory().createButton(buttonsComposite, Messages.addForm, SWT.FLAT);
addButton.setLayoutData(GridDataFactory.fillDefaults().grab(true, false).hint(IDialogConstants.BUTTON_WIDTH, SWT.DEFAULT).create());
addButton.setLayoutData(GridDataFactory.fillDefaults().grab(true, false).minSize(IDialogConstants.BUTTON_WIDTH, SWT.DEFAULT).create());
addButton.addListener(SWT.Selection, new Listener() {
@Override
......@@ -387,7 +387,7 @@ public abstract class AbstractFormsSection extends AbstractBonitaDescriptionSect
private Button createEditFormButton(final Composite buttonsComposite, final FilteredTree tree) {
final Button editButton = getWidgetFactory().createButton(buttonsComposite, Messages.editForm, SWT.FLAT);
editButton.setLayoutData(GridDataFactory.fillDefaults().grab(true, false).hint(IDialogConstants.BUTTON_WIDTH, SWT.DEFAULT).create());
editButton.setLayoutData(GridDataFactory.fillDefaults().grab(true, false).minSize(IDialogConstants.BUTTON_WIDTH, SWT.DEFAULT).create());
editButton.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(final SelectionEvent e) {
......@@ -400,7 +400,7 @@ public abstract class AbstractFormsSection extends AbstractBonitaDescriptionSect
private Button createDownFormButton(final Composite buttonsComposite, final FilteredTree tree) {
downButton = getWidgetFactory().createButton(buttonsComposite, Messages.formDown, SWT.FLAT);
downButton.setLayoutData(GridDataFactory.fillDefaults().grab(true, false).hint(IDialogConstants.BUTTON_WIDTH, SWT.DEFAULT).create());
downButton.setLayoutData(GridDataFactory.fillDefaults().grab(true, false).minSize(IDialogConstants.BUTTON_WIDTH, SWT.DEFAULT).create());
downButton.addListener(SWT.Selection, new Listener() {
@Override
public void handleEvent(final Event event) {
......@@ -422,7 +422,7 @@ public abstract class AbstractFormsSection extends AbstractBonitaDescriptionSect
private Button createUpFormButton(final Composite buttonsComposite, final FilteredTree tree) {
upButton = getWidgetFactory().createButton(buttonsComposite, Messages.formUp, SWT.FLAT);
upButton.setLayoutData(GridDataFactory.fillDefaults().grab(true, false).hint(IDialogConstants.BUTTON_WIDTH, SWT.DEFAULT).create());
upButton.setLayoutData(GridDataFactory.fillDefaults().grab(true, false).minSize(IDialogConstants.BUTTON_WIDTH, SWT.DEFAULT).create());
upButton.addListener(SWT.Selection, new Listener() {
@Override
public void handleEvent(final Event event) {
......@@ -442,7 +442,7 @@ public abstract class AbstractFormsSection extends AbstractBonitaDescriptionSect
private Button createRemoveFormButton(final Composite buttonsComposite, final FilteredTree tree) {
final Button removeButton = getWidgetFactory().createButton(buttonsComposite, Messages.removeForm, SWT.FLAT);
removeButton.setLayoutData(GridDataFactory.fillDefaults().grab(true, false).hint(IDialogConstants.BUTTON_WIDTH, SWT.DEFAULT).create());
removeButton.setLayoutData(GridDataFactory.fillDefaults().grab(true, false).minSize(IDialogConstants.BUTTON_WIDTH, SWT.DEFAULT).create());
removeButton.addListener(SWT.Selection, new Listener() {
@Override
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment