Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpfullbright2009-12-18 17:38:11 +0000
committerpfullbright2009-12-18 17:38:11 +0000
commit4fcad1caa6604a83cb66db2e4c899198623ab2e7 (patch)
tree0ba7f2c840d9ce2fc1efd384212a2e2c4e374ebb /jpa/plugins/org.eclipse.jpt.eclipselink.ui/src/org/eclipse
parentd5b83d022d7c465bcd158aa12842faed3676935c (diff)
downloadwebtools.dali-4fcad1caa6604a83cb66db2e4c899198623ab2e7.tar.gz
webtools.dali-4fcad1caa6604a83cb66db2e4c899198623ab2e7.tar.xz
webtools.dali-4fcad1caa6604a83cb66db2e4c899198623ab2e7.zip
made joining strategy sections collapsable
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.eclipselink.ui/src/org/eclipse')
-rw-r--r--jpa/plugins/org.eclipse.jpt.eclipselink.ui/src/org/eclipse/jpt/eclipselink/ui/internal/details/EclipseLinkOneToManyJoiningStrategyPane.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.ui/src/org/eclipse/jpt/eclipselink/ui/internal/details/EclipseLinkOneToManyJoiningStrategyPane.java b/jpa/plugins/org.eclipse.jpt.eclipselink.ui/src/org/eclipse/jpt/eclipselink/ui/internal/details/EclipseLinkOneToManyJoiningStrategyPane.java
index e39b22be01..d62959e1ca 100644
--- a/jpa/plugins/org.eclipse.jpt.eclipselink.ui/src/org/eclipse/jpt/eclipselink/ui/internal/details/EclipseLinkOneToManyJoiningStrategyPane.java
+++ b/jpa/plugins/org.eclipse.jpt.eclipselink.ui/src/org/eclipse/jpt/eclipselink/ui/internal/details/EclipseLinkOneToManyJoiningStrategyPane.java
@@ -16,9 +16,9 @@ import org.eclipse.jpt.ui.internal.details.JoinTableJoiningStrategyPane;
import org.eclipse.jpt.ui.internal.details.JptUiDetailsMessages;
import org.eclipse.jpt.ui.internal.details.MappedByJoiningStrategyPane;
import org.eclipse.jpt.ui.internal.widgets.FormPane;
+import org.eclipse.jpt.utility.internal.model.value.SimplePropertyValueModel;
import org.eclipse.jpt.utility.model.value.PropertyValueModel;
import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Group;
public class EclipseLinkOneToManyJoiningStrategyPane
extends FormPane<EclipseLinkOneToManyRelationshipReference>
@@ -27,25 +27,25 @@ public class EclipseLinkOneToManyJoiningStrategyPane
FormPane<?> parentPane,
PropertyValueModel<EclipseLinkOneToManyRelationshipReference> subjectHolder,
Composite parent) {
+
super(parentPane, subjectHolder, parent);
}
@Override
protected void initializeLayout(Composite container) {
- // joining strategy group pane
- Group groupPane = addTitledGroup(
- container,
- JptUiDetailsMessages.Joining_title
- );
+ Composite composite = addCollapsableSection(
+ container,
+ JptUiDetailsMessages.Joining_title,
+ new SimplePropertyValueModel<Boolean>(Boolean.TRUE));
- new MappedByJoiningStrategyPane(this, groupPane);
+ new MappedByJoiningStrategyPane(this, composite);
JoinColumnJoiningStrategyPane.
- buildJoinColumnJoiningStrategyPaneWithIncludeOverrideCheckBox(
- this,
- groupPane);
+ buildJoinColumnJoiningStrategyPaneWithIncludeOverrideCheckBox(this, composite);
+
+ new JoinTableJoiningStrategyPane(this, composite);
- new JoinTableJoiningStrategyPane(this, groupPane);
+ addSubPane(composite, 5);
}
}

Back to the top