Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2003-09-10 17:51:26 -0400
committerJean Michel-Lemieux2003-09-10 17:51:26 -0400
commit0c9650ee0d4906e51fdc06d18d942258359252c2 (patch)
tree3efc0fff9d0b0a90ed4e9bf2a01224933f2d60c5
parent4bd931f954e915574b4c600a08cb7b962b491ac4 (diff)
downloadeclipse.platform.team-0c9650ee0d4906e51fdc06d18d942258359252c2.tar.gz
eclipse.platform.team-0c9650ee0d4906e51fdc06d18d942258359252c2.tar.xz
eclipse.platform.team-0c9650ee0d4906e51fdc06d18d942258359252c2.zip
Added example code for determining when stats labels are resized to small.
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/sync/views/StatisticsPanel.java17
1 files changed, 16 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/sync/views/StatisticsPanel.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/sync/views/StatisticsPanel.java
index 815413113..46c6b22b9 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/sync/views/StatisticsPanel.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/sync/views/StatisticsPanel.java
@@ -68,7 +68,22 @@ public class StatisticsPanel extends Composite {
});
addControlListener(new ControlAdapter() {
- public void controlResized(ControlEvent e) {
+ public void controlResized(ControlEvent e) {
+// Point preferredSize = nOutgoing.computeSize(SWT.DEFAULT, SWT.DEFAULT);
+// Rectangle currentSize = nOutgoing.getBounds();
+// if(currentSize.width < preferredSize.y) {
+// for (Iterator it = descriptions.iterator(); it.hasNext();) {
+// Label element = (Label) it.next();
+// element.setText("");
+// }
+// } else {
+// for (Iterator it = descriptions.iterator(); it.hasNext();) {
+// Label element = (Label) it.next();
+// element.setText("lksjfdg lksjdglksdj glks jg");
+// }
+// }
+// layout(true);
+// redraw();
}
});
addPaintListener(new PaintListener() {

Back to the top