Commit d3de57b6 authored by Romain Bioteau's avatar Romain Bioteau

Use a hint on text

parent 3616a80c
...@@ -32,9 +32,9 @@ public class InfoMessageComposite extends Composite { ...@@ -32,9 +32,9 @@ public class InfoMessageComposite extends Composite {
public InfoMessageComposite(final Composite parent, final TabbedPropertySheetWidgetFactory widgetFactory) { public InfoMessageComposite(final Composite parent, final TabbedPropertySheetWidgetFactory widgetFactory) {
super(parent, SWT.NONE); super(parent, SWT.NONE);
setLayout(GridLayoutFactory.fillDefaults().numColumns(2).extendedMargins(10, 0, 10, 0).create()); setLayout(GridLayoutFactory.fillDefaults().extendedMargins(10, 0, 10, 0).create());
info = widgetFactory.createLabel(this, "", SWT.WRAP); info = widgetFactory.createLabel(this, "", SWT.WRAP);
info.setLayoutData(GridDataFactory.swtDefaults().span(2, 1).align(SWT.RIGHT, SWT.CENTER).create()); info.setLayoutData(GridDataFactory.swtDefaults().hint(600, SWT.DEFAULT).align(SWT.FILL, SWT.CENTER).create());
widgetFactory.adapt(this); widgetFactory.adapt(this);
} }
......
...@@ -75,7 +75,7 @@ public class InternalMappingComposite extends Composite implements BonitaPrefere ...@@ -75,7 +75,7 @@ public class InternalMappingComposite extends Composite implements BonitaPrefere
addResourceChangeListener(webPageNameResourceChangeListener); addResourceChangeListener(webPageNameResourceChangeListener);
info = widgetFactory.createLabel(this, "", SWT.WRAP); info = widgetFactory.createLabel(this, "", SWT.WRAP);
info.setLayoutData(GridDataFactory.swtDefaults().span(2, 1).align(SWT.RIGHT, SWT.CENTER).create()); info.setLayoutData(GridDataFactory.swtDefaults().span(2, 1).hint(600, SWT.DEFAULT).align(SWT.FILL, SWT.CENTER).create());
widgetFactory.adapt(this); widgetFactory.adapt(this);
} }
......
...@@ -52,7 +52,7 @@ public class URLMappingComposite extends Composite implements BonitaPreferenceCo ...@@ -52,7 +52,7 @@ public class URLMappingComposite extends Composite implements BonitaPreferenceCo
urlText.setLayoutData(GridDataFactory.swtDefaults().hint(WIDTH_HINT, SWT.DEFAULT).create()); urlText.setLayoutData(GridDataFactory.swtDefaults().hint(WIDTH_HINT, SWT.DEFAULT).create());
info = widgetFactory.createLabel(this, "", SWT.WRAP); info = widgetFactory.createLabel(this, "", SWT.WRAP);
info.setLayoutData(GridDataFactory.fillDefaults().span(2, 1).hint(750, SWT.DEFAULT).align(SWT.RIGHT, SWT.CENTER).create()); info.setLayoutData(GridDataFactory.fillDefaults().span(2, 1).hint(600, SWT.DEFAULT).align(SWT.FILL, SWT.CENTER).create());
widgetFactory.adapt(this); widgetFactory.adapt(this);
} }
......
Markdown is supported
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