From edfa6a2a24048ef0507cb0e2d89e7f1cb9b23c4e Mon Sep 17 00:00:00 2001 From: Daniel Kirschten Date: Tue, 12 May 2020 21:53:04 +0200 Subject: [PATCH] Turned auto-wrapping on for machines with long descriptions --- .../plugin/nature/properties/MograsimNaturePropertyPage.java | 2 +- .../plugin/wizards/newWizards/MograsimSettingsPage.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/nature/properties/MograsimNaturePropertyPage.java b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/nature/properties/MograsimNaturePropertyPage.java index c51aa01a..b7fb0756 100644 --- a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/nature/properties/MograsimNaturePropertyPage.java +++ b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/nature/properties/MograsimNaturePropertyPage.java @@ -69,7 +69,7 @@ public class MograsimNaturePropertyPage extends PropertyPage // Machine choice machineSelect = MachineContextSwtTools.createMachineSelector(composite, SWT.NONE); - machineDescription = new Label(composite, SWT.NONE); + machineDescription = new Label(composite, SWT.WRAP); machineSelect.addListener(md -> machineDescription.setText(md.getDescription())); machineDescription.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1)); diff --git a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/wizards/newWizards/MograsimSettingsPage.java b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/wizards/newWizards/MograsimSettingsPage.java index f360d50f..b8243f57 100644 --- a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/wizards/newWizards/MograsimSettingsPage.java +++ b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/wizards/newWizards/MograsimSettingsPage.java @@ -95,7 +95,7 @@ public class MograsimSettingsPage extends WizardPage machineSelect = MachineContextSwtTools.createMachineSelector(composite, SWT.NONE); machineSelect.addListener(md -> setPageComplete(isValid())); - machineDescription = new Label(composite, SWT.NONE); + machineDescription = new Label(composite, SWT.WRAP); machineSelect.addListener(md -> machineDescription.setText(md.getDescription())); machineDescription.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1)); } -- 2.17.1