Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Northover2004-12-08 18:26:31 +0000
committerSteve Northover2004-12-08 18:26:31 +0000
commit12ece00abae016986e462d684584d1e2d896e24f (patch)
tree2e84ba1180e0ef983330c88c5a3a8f034b62d06a /examples
parentb84991fe9025c186134326b53735fc68ff9195e5 (diff)
downloadeclipse.platform.swt-12ece00abae016986e462d684584d1e2d896e24f.tar.gz
eclipse.platform.swt-12ece00abae016986e462d684584d1e2d896e24f.tar.xz
eclipse.platform.swt-12ece00abae016986e462d684584d1e2d896e24f.zip
show border width
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/Tab.java17
1 files changed, 16 insertions, 1 deletions
diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/Tab.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/Tab.java
index cf81bf5520..02c6b4c3fc 100755
--- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/Tab.java
+++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/Tab.java
@@ -69,6 +69,7 @@ abstract class Tab {
boolean [] eventsFilter;
static final String [] EVENT_NAMES = {
+ "None",
"KeyDown", "KeyUp",
"MouseDown", "MouseUp", "MouseMove", "MouseEnter", "MouseExit", "MouseDoubleClick",
"Paint", "Move", "Resize", "Dispose",
@@ -81,7 +82,9 @@ abstract class Tab {
"Activate", "Deactivate",
"Help", "DragDetect", "Arm", "Traverse", "MouseHover",
"HardKeyDown", "HardKeyUp",
- "MenuDetect"
+ "MenuDetect",
+ "SetData",
+ "MouseWheel",
};
/**
@@ -773,6 +776,14 @@ abstract class Tab {
eventConsole.append (toString);
eventConsole.append ("\n");
}
+
+ /**
+ * Logs a string to the event console.
+ */
+ void log (String string) {
+ eventConsole.append (string);
+ eventConsole.append ("\n");
+ }
/**
* Logs a typed event to the event console.
@@ -934,6 +945,10 @@ abstract class Tab {
setExampleWidgetForeground ();
setExampleWidgetFont ();
setExampleWidgetSize ();
+ Control [] controls = getExampleWidgets ();
+ for (int i=0; i<controls.length; i++) {
+ log ("Control=" + controls [i] + ", border width=" + controls [i].getBorderWidth ());
+ }
}
/**

Back to the top