diff options
author | Felipe Heidrich <fheidric> | 2011-01-19 18:48:04 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2011-01-19 18:48:04 +0000 |
commit | 1fb4a1ef8ef4a4f59c2703e5be5f7dc54e0f0862 (patch) | |
tree | 8a0b71e97ad231e34191efb6ad78ee2b78b62c2b | |
parent | 30ed6afce2e2dad091c8b4ea63f7f6d92d615178 (diff) | |
download | eclipse.platform.swt-1fb4a1ef8ef4a4f59c2703e5be5f7dc54e0f0862.tar.gz eclipse.platform.swt-1fb4a1ef8ef4a4f59c2703e5be5f7dc54e0f0862.tar.xz eclipse.platform.swt-1fb4a1ef8ef4a4f59c2703e5be5f7dc54e0f0862.zip |
formatting + fixing toString()
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Touch.java | 5 | ||||
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/TouchSource.java | 6 |
2 files changed, 4 insertions, 7 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Touch.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Touch.java index 0a7a3e5d93..31d1d520eb 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Touch.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Touch.java @@ -26,7 +26,6 @@ import org.eclipse.swt.events.*; * * @since 3.7 */ - public final class Touch { /** @@ -79,7 +78,7 @@ public final class Touch { * @param x X location of the touch in screen coordinates * @param y Y location of the touch in screen coordinates */ -public Touch(long identity, TouchSource source, int state, boolean primary, int x, int y) { +public Touch (long identity, TouchSource source, int state, boolean primary, int x, int y) { this.id = identity; this.source = source; this.state = state; @@ -95,7 +94,7 @@ public Touch(long identity, TouchSource source, int state, boolean primary, int * @return a string representation of the event */ public String toString() { - return "{id=" + id + return "Touch {id=" + id + " source=" + source + " state=" + state + " primary=" + primary diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/TouchSource.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/TouchSource.java index b9dfa392be..a5c17aa741 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/TouchSource.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/TouchSource.java @@ -36,7 +36,6 @@ import org.eclipse.swt.graphics.*; * * @since 3.7 */ - public final class TouchSource { int /*long*/ handle; boolean direct; @@ -81,8 +80,7 @@ public Rectangle getBounds () { * @return a string representation of the event */ public String toString () { - return "{handle=" + handle - + " direct=" + direct - + " bounds=" + bounds; + return "TouchSource {handle=" + handle + " direct=" + direct + " bounds=" + bounds + "}"; } + }
\ No newline at end of file |