From: Daniel Kirschten Date: Tue, 12 May 2020 19:53:04 +0000 (+0200) Subject: Turned auto-wrapping on for machines with long descriptions X-Git-Url: https://mograsim.net/gitweb/?a=commitdiff_plain;h=edfa6a2a24048ef0507cb0e2d89e7f1cb9b23c4e;p=Mograsim.git Turned auto-wrapping on for machines with long descriptions --- 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)); }