Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAchim Loerke2014-10-02 12:27:21 +0000
committerAchim Loerke2014-10-02 12:27:21 +0000
commite1d647144d782f504ae27c713459317f0d918267 (patch)
tree70cf464646fa7f9aeea8b8f4c206d49d08e14397 /org.eclipse.jubula.rc.swt
parent23865b17140307511db63482ac3fd6c12d1e6fe3 (diff)
downloadorg.eclipse.jubula.core-e1d647144d782f504ae27c713459317f0d918267.tar.gz
org.eclipse.jubula.core-e1d647144d782f504ae27c713459317f0d918267.tar.xz
org.eclipse.jubula.core-e1d647144d782f504ae27c713459317f0d918267.zip
There are two versions of SWT, one where Widget.parent is an int and
another where it is a long. To avoid compile errors I added some casts to keep the compiler happy. I am not sure how this actually works in real life deployment situations, but since this change does nothing more than explicitely write down what must have happened all the time I see no problem with this approach.
Diffstat (limited to 'org.eclipse.jubula.rc.swt')
-rw-r--r--org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/utils/SwtUtils.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/utils/SwtUtils.java b/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/utils/SwtUtils.java
index 09f0486c0..fcd06ead6 100644
--- a/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/utils/SwtUtils.java
+++ b/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/utils/SwtUtils.java
@@ -757,7 +757,7 @@ public class SwtUtils {
}
int [] rect = new int [4];
try {
- sendMessage(parent.handle, /*TCM_GETITEMRECT*/ 0x130a, index, rect);
+ sendMessage((int) parent.handle, /*TCM_GETITEMRECT*/ 0x130a, index, rect);
int width = rect [2] - rect[0];
int height = rect [3] - rect [1];
Rectangle bounds = new Rectangle(rect [0], rect [1], width, height);
@@ -780,7 +780,7 @@ public class SwtUtils {
return new Rectangle(0, 0, 0, 0);
}
try {
- int hwndHeader = sendMessage(parent.handle,
+ int hwndHeader = sendMessage((int)parent.handle,
/*LVM_GETHEADER*/ 0x101f,
0, new int [0]);
int [] rect = new int [4];
@@ -790,7 +790,7 @@ public class SwtUtils {
int height = rect [3] - rect [1];
Rectangle bounds = new Rectangle(rect [0], rect [1], width, height);
// FIXME zeb: coordinate system may change when the API is added to SWT
- int hwndTable = parent.handle;
+ int hwndTable = (int)parent.handle;
try {
parent.handle = hwndHeader;
return tableColumn.getDisplay().map(parent, null, bounds);

Back to the top