diff options
| author | Pierre-Charles David | 2016-01-28 09:13:20 +0000 |
|---|---|---|
| committer | Pierre-Charles David | 2016-01-28 09:13:22 +0000 |
| commit | 356ec0d00c80badf40ebc6f97518a3ae1c36302b (patch) | |
| tree | 32ba0c2be2600ad0ab59939207dfe24a80a53bdf | |
| parent | 404eb5b44343089184cdc8ec404adefcd09bc03d (diff) | |
| download | org.eclipse.eef-356ec0d00c80badf40ebc6f97518a3ae1c36302b.tar.gz org.eclipse.eef-356ec0d00c80badf40ebc6f97518a3ae1c36302b.tar.xz org.eclipse.eef-356ec0d00c80badf40ebc6f97518a3ae1c36302b.zip | |
[482528] Fix label widget layout
The parent container sets up a grid layout with 3 column. Make the label
"fill" the 3 columns even if we really need only one.
Bug: 482528
Change-Id: Ia46119558df834abbbab3b25a1193783ee20eac1
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
| -rw-r--r-- | plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFLabelLifecycleManager.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFLabelLifecycleManager.java b/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFLabelLifecycleManager.java index c1ce7abc2..f0abe1c50 100644 --- a/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFLabelLifecycleManager.java +++ b/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFLabelLifecycleManager.java @@ -16,6 +16,7 @@ import org.eclipse.eef.core.api.controllers.EEFLabelController; import org.eclipse.eef.core.api.controllers.IConsumer; import org.eclipse.sirius.common.interpreter.api.IInterpreter; import org.eclipse.sirius.common.interpreter.api.IVariableManager; +import org.eclipse.swt.SWT; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Label; @@ -79,7 +80,9 @@ public class EEFLabelLifecycleManager implements ILifecycleManager { public void createControl(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) { TabbedPropertySheetWidgetFactory widgetFactory = tabbedPropertySheetPage.getWidgetFactory(); + widgetFactory.createLabel(parent, "", SWT.NONE); //$NON-NLS-1$ this.label = widgetFactory.createLabel(parent, ""); //$NON-NLS-1$ + widgetFactory.createLabel(parent, "", SWT.NONE); //$NON-NLS-1$ widgetFactory.paintBordersFor(parent); GridData nameData = new GridData(GridData.FILL_HORIZONTAL); this.label.setLayoutData(nameData); |
