Turned auto-wrapping on for machines with long descriptions
authorDaniel Kirschten <daniel.kirschten@gmx.de>
Tue, 12 May 2020 19:53:04 +0000 (21:53 +0200)
committerDaniel Kirschten <daniel.kirschten@gmx.de>
Tue, 12 May 2020 19:53:04 +0000 (21:53 +0200)
plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/nature/properties/MograsimNaturePropertyPage.java
plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/wizards/newWizards/MograsimSettingsPage.java

index c51aa01..b7fb075 100644 (file)
@@ -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));
 
index f360d50..b8243f5 100644 (file)
@@ -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));
        }