summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-10-13 03:47:43 (EDT)
committerEike Stepper2007-10-13 03:47:43 (EDT)
commit6bceab7c1909d0fad023838d85776e737de377f7 (patch)
tree91d290c10ef0b59698d3169d62b899b0ac547d73
parent30d1ae1b8db430671a1ddcc7d1903c25160ead97 (diff)
downloadcdo-6bceab7c1909d0fad023838d85776e737de377f7.zip
cdo-6bceab7c1909d0fad023838d85776e737de377f7.tar.gz
cdo-6bceab7c1909d0fad023838d85776e737de377f7.tar.bz2
[206223] Provide collaborations example
https://bugs.eclipse.org/bugs/show_bug.cgi?id=206223
-rw-r--r--plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/ui/widgets/SashComposite.java20
1 files changed, 15 insertions, 5 deletions
diff --git a/plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/ui/widgets/SashComposite.java b/plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/ui/widgets/SashComposite.java
index dc978aa..a453300 100644
--- a/plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/ui/widgets/SashComposite.java
+++ b/plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/ui/widgets/SashComposite.java
@@ -71,10 +71,6 @@ public abstract class SashComposite extends Composite
control2.setLayoutData(control2Data);
init();
- if (!vertical)
- {
- swap();
- }
}
public boolean isVertical()
@@ -87,7 +83,16 @@ public abstract class SashComposite extends Composite
if (this.vertical != vertical)
{
this.vertical = vertical;
- swap();
+
+ Sash newSash = createSash(this);
+ newSash.moveBelow(control1);
+ newSash.setLayoutData(sash.getLayoutData());
+
+ sash.setLayoutData(null);
+ sash.dispose();
+ sash = newSash;
+
+ init();
layout();
}
}
@@ -123,6 +128,11 @@ public abstract class SashComposite extends Composite
control2Data.right = new FormAttachment(100, 0);
control2Data.top = new FormAttachment(0, 0);
control2Data.bottom = new FormAttachment(100, 0);
+
+ if (!vertical)
+ {
+ swap();
+ }
}
protected void swap()