Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSopot Cela2012-08-27 18:58:47 -0400
committerSopot Cela2012-08-27 18:58:47 -0400
commitd93245ebdb666da6a59002bfae37abb169814836 (patch)
tree43ed00b9228bc3538e76d3f3e523f46d6c9e1733
parent4d0b7202bede50a2f12b86e58c89bd8d301a6442 (diff)
downloadorg.eclipse.e4.tools-d93245ebdb666da6a59002bfae37abb169814836.tar.gz
org.eclipse.e4.tools-d93245ebdb666da6a59002bfae37abb169814836.tar.xz
org.eclipse.e4.tools-d93245ebdb666da6a59002bfae37abb169814836.zip
ASSIGNED - bug 384578: [Tooling] Fragment Editor, place text above the
boxes https://bugs.eclipse.org/bugs/show_bug.cgi?id=384578
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ModelFragmentsEditor.java23
1 files changed, 16 insertions, 7 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ModelFragmentsEditor.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ModelFragmentsEditor.java
index fe814a0f..db4380ba 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ModelFragmentsEditor.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ModelFragmentsEditor.java
@@ -110,11 +110,16 @@ public class ModelFragmentsEditor extends AbstractComponentEditor {
}
{
- Label l = new Label(parent, SWT.NONE);
- l.setText(Messages.ModelFragmentsEditor_Imports);
- l.setLayoutData(new GridData(GridData.END, GridData.BEGINNING, false, false));
+ GridLayout layout = (GridLayout) parent.getLayout();
+ layout.numColumns = 2;
- final TableViewer viewer = new TableViewer(parent);
+ Composite impCompo = new Composite(parent, SWT.NONE);
+ impCompo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ impCompo.setLayout(new GridLayout());
+ Label l = new Label(impCompo, SWT.NONE);
+ l.setText(Messages.ModelFragmentsEditor_Imports);
+ l.setLayoutData(new GridData(GridData.BEGINNING, GridData.BEGINNING, false, false));
+ final TableViewer viewer = new TableViewer(impCompo);
viewer.setContentProvider(new ObservableListContentProvider());
viewer.setLabelProvider(new ComponentLabelProvider(getEditor(), Messages));
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
@@ -252,11 +257,15 @@ public class ModelFragmentsEditor extends AbstractComponentEditor {
}
{
- Label l = new Label(parent, SWT.NONE);
+
+ Composite fragCompo = new Composite(parent, SWT.NONE);
+ fragCompo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ fragCompo.setLayout(new GridLayout());
+ Label l = new Label(fragCompo, SWT.NONE);
l.setText(Messages.ModelFragmentsEditor_ModelFragments);
- l.setLayoutData(new GridData(GridData.END, GridData.BEGINNING, false, false));
+ l.setLayoutData(new GridData(GridData.BEGINNING, GridData.BEGINNING, false, false));
- final TableViewer viewer = new TableViewer(parent);
+ final TableViewer viewer = new TableViewer(fragCompo);
viewer.setContentProvider(new ObservableListContentProvider());
viewer.setLabelProvider(new ComponentLabelProvider(getEditor(), Messages));
GridData gd = new GridData(GridData.FILL_HORIZONTAL);

Back to the top