summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaren Butzke2012-11-20 10:49:48 (EST)
committerKaren Butzke2012-11-20 10:49:48 (EST)
commit0abe6c6f71214193167779f8351f000bb6c78b01 (patch)
tree5fc36d5b9c2a56a9c86798a49dc179e43a29dcc2
parentdf646413d787f8be7aeb7f68eb0fca1074079d6e (diff)
downloadwebtools.dali-0abe6c6f71214193167779f8351f000bb6c78b01.zip
webtools.dali-0abe6c6f71214193167779f8351f000bb6c78b01.tar.gz
webtools.dali-0abe6c6f71214193167779f8351f000bb6c78b01.tar.bz2
Bug 315445 - persistence.xml editor layout, finally got the all the add remove panels to fill the panel correctly
-rw-r--r--jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/internal/persistence/PersistenceUnitGeneralEditorPage.java25
1 files changed, 12 insertions, 13 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/internal/persistence/PersistenceUnitGeneralEditorPage.java b/jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/internal/persistence/PersistenceUnitGeneralEditorPage.java
index 6c78d36..f7b88a1 100644
--- a/jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/internal/persistence/PersistenceUnitGeneralEditorPage.java
+++ b/jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/internal/persistence/PersistenceUnitGeneralEditorPage.java
@@ -105,29 +105,28 @@ public class PersistenceUnitGeneralEditorPage extends Pane<PersistenceUnit> {
generalSection.setLayoutData(gridData);
generalSection.setClient(generalComposite);
- Section mappingFilesSection = this.getWidgetFactory().createSection(container, ExpandableComposite.TITLE_BAR | Section.DESCRIPTION);
- mappingFilesSection.setText(JptUiPersistenceMessages.PersistenceUnitGeneralComposite_jpaMappingDescriptors);
- mappingFilesSection.setDescription(JptUiPersistenceMessages.PersistenceUnitGeneralComposite_jpaMappingDescriptors_description);
- Control mappingFilesComposite = this.buildMappingFilesComposite(mappingFilesSection);
- gridData = new GridData(GridData.FILL_HORIZONTAL);
- gridData.verticalAlignment = SWT.TOP;
- mappingFilesSection.setLayoutData(gridData);
- mappingFilesSection.setClient(mappingFilesComposite);
-
Section classesSection = this.getWidgetFactory().createSection(container, ExpandableComposite.TITLE_BAR | Section.DESCRIPTION);
classesSection.setText(JptUiPersistenceMessages.PersistenceUnitGeneralComposite_mappedClasses);
classesSection.setDescription(JptUiPersistenceMessages.PersistenceUnitClassesComposite_description);
- gridData = new GridData(GridData.FILL_BOTH);
- gridData.verticalAlignment = SWT.TOP;
+ gridData = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 3);
classesSection.setLayoutData(gridData);
Control classesComposite = this.buildClassesComposite(classesSection);
classesSection.setClient(classesComposite);
+ Section mappingFilesSection = this.getWidgetFactory().createSection(container, ExpandableComposite.TITLE_BAR | Section.DESCRIPTION);
+ mappingFilesSection.setText(JptUiPersistenceMessages.PersistenceUnitGeneralComposite_jpaMappingDescriptors);
+ mappingFilesSection.setDescription(JptUiPersistenceMessages.PersistenceUnitGeneralComposite_jpaMappingDescriptors_description);
+ Control mappingFilesComposite = this.buildMappingFilesComposite(mappingFilesSection);
+ gridData = new GridData(SWT.FILL, SWT.FILL, true, true);
+ gridData.verticalIndent = 5;
+ mappingFilesSection.setLayoutData(gridData);
+ mappingFilesSection.setClient(mappingFilesComposite);
+
Section jarFilesSection = this.getWidgetFactory().createSection(container, ExpandableComposite.TITLE_BAR);
jarFilesSection.setText(JptUiPersistenceMessages.PersistenceUnitGeneralComposite_jarFiles);
Control jarFilesComposite = this.buildJarFilesComposite(jarFilesSection);
- gridData = new GridData(GridData.FILL_BOTH);
- gridData.verticalAlignment = SWT.TOP;
+ gridData = new GridData(SWT.FILL, SWT.FILL, true, true);
+ gridData.verticalIndent = 5;
jarFilesSection.setLayoutData(gridData);
jarFilesSection.setClient(jarFilesComposite);
}