okareshaba / openintents

Automatically exported from code.google.com/p/openintents
0 stars 0 forks source link

Modify mGravityZText's different default value between swing version and SWT version. #332

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I'm Lee Sanghoon who introduced SensorSimulator for SWT to you.

I found some different text value, and I create patch.

<code>

Index: src/org/openintents/tools/sensorsimulator/swt/SensorSimulatorSwt.java
===================================================================
--- 
src/org/openintents/tools/sensorsimulator/swt/SensorSimulatorSwt.java   (revision 
2950)
+++ 
src/org/openintents/tools/sensorsimulator/swt/SensorSimulatorSwt.java   (working 
copy)
@@ -904,7 +904,7 @@
        createLabel(group, SWT.NONE, "m/s" + SQUARED);

        createLabel(group, SWT.NONE, "z: ");

-       mGravityZText = createText(group, SWT.BORDER, "0");

+       mGravityZText = createText(group, SWT.BORDER, "-9.80665");

        createLabel(group, SWT.NONE, "m/s" + SQUARED);

    }

</code>

Original issue reported on code.google.com by calm1979 on 16 Mar 2011 at 1:19

GoogleCodeExporter commented 9 years ago
I found more things about initializing values and UI thread issues for SWT 
version.
and I found some variable miss-using for swing version.

I will test more and more.
After testing, I will attach patch file.

Sorry about that.

Original comment by calm1979 on 16 Mar 2011 at 9:40

GoogleCodeExporter commented 9 years ago

Original comment by peli0...@googlemail.com on 16 Mar 2011 at 8:27

GoogleCodeExporter commented 9 years ago
Here are 3 patch files. first for swing and others for swt.

SensorSimulator.java
- fix miss-using variable

MobileComposite.java
- fix comment text. not important.

SensorSimulatorSwt.java
- major patch!
- fix SWT UI thread issues

Original comment by calm1979 on 25 Mar 2011 at 6:43

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by calm1979 on 23 May 2011 at 1:59