diff options
author | Henrik Rentz-Reichert | 2014-06-06 12:20:39 +0000 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org | 2014-06-06 12:20:39 +0000 |
commit | a592f60552e354652b63e2af0b1e1cf2cc774e95 (patch) | |
tree | eef61596883b31018a284294853c8bb5bc8b5cd8 /plugins/org.eclipse.etrice.generator.ui/src/org/eclipse/etrice/generator/ui | |
parent | dfcb056632a485fb3e9949d8f6485e7309cc7bd7 (diff) | |
parent | 50cc6853881bf0a34303fa5f31b105508301a39a (diff) | |
download | org.eclipse.etrice-a592f60552e354652b63e2af0b1e1cf2cc774e95.tar.gz org.eclipse.etrice-a592f60552e354652b63e2af0b1e1cf2cc774e95.tar.xz org.eclipse.etrice-a592f60552e354652b63e2af0b1e1cf2cc774e95.zip |
Merge "[ui.common] improved dialog size of mapping wizard"
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.ui/src/org/eclipse/etrice/generator/ui')
-rw-r--r-- | plugins/org.eclipse.etrice.generator.ui/src/org/eclipse/etrice/generator/ui/wizard/MappingCreationPage.java | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/plugins/org.eclipse.etrice.generator.ui/src/org/eclipse/etrice/generator/ui/wizard/MappingCreationPage.java b/plugins/org.eclipse.etrice.generator.ui/src/org/eclipse/etrice/generator/ui/wizard/MappingCreationPage.java index ce2ca12f5..1ded0981d 100644 --- a/plugins/org.eclipse.etrice.generator.ui/src/org/eclipse/etrice/generator/ui/wizard/MappingCreationPage.java +++ b/plugins/org.eclipse.etrice.generator.ui/src/org/eclipse/etrice/generator/ui/wizard/MappingCreationPage.java @@ -67,9 +67,12 @@ public class MappingCreationPage extends WizardPage { topLevel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); topLevel.setFont(parent.getFont()); - SashForm sash = new SashForm(topLevel, SWT.VERTICAL); + // both editor side-by-side + SashForm sash = new SashForm(topLevel, SWT.HORIZONTAL); sash.setLayout(new GridLayout(1, false)); - sash.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); + GridData sash_data = new GridData(SWT.FILL, SWT.FILL, true, true); + sash_data.heightHint = convertHeightInCharsToPixels(11); + sash.setLayoutData(sash_data); // 1. etMap editor { IEditedResourceProvider resourceProvider = new IEditedResourceProvider() { @@ -85,6 +88,10 @@ public class MappingCreationPage extends WizardPage { }; EmbeddedEditorFactory factory = etMapInjector.getInstance(EmbeddedEditorFactory.class); etMapEditor = factory.newEditor(resourceProvider).readOnly().withParent(sash); + GridData data = new GridData(SWT.FILL, SWT.FILL, true, true); + data.widthHint= convertWidthInCharsToPixels(120); + data.heightHint= convertHeightInCharsToPixels(10); + etMapEditor.getViewer().getControl().setLayoutData(data); } // 2. etPhys editor { @@ -101,6 +108,10 @@ public class MappingCreationPage extends WizardPage { }; EmbeddedEditorFactory factory = etPhysInjector.getInstance(EmbeddedEditorFactory.class); etPhysEditor = factory.newEditor(resourceProvider).readOnly().withParent(sash); + GridData data = new GridData(SWT.FILL, SWT.FILL, true, true); + data.widthHint= convertWidthInCharsToPixels(80); + data.heightHint= convertHeightInCharsToPixels(10); + etPhysEditor.getViewer().getControl().setLayoutData(data); } setControl(topLevel); @@ -133,7 +144,6 @@ public class MappingCreationPage extends WizardPage { for (RuntimeClass item : builder.physicalModel.getRuntimeClasses()) physEditorContent.append(serializer.serialize(item, options)); etPhysEditor.createPartialEditor("", physEditorContent.toString(), "", false); - } public Resource getMappingModelResource(String setPhysModelImport) { |