Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod2013-04-29 12:57:08 +0000
committerCarolyn MacLeod2013-04-29 12:57:08 +0000
commit6b9c26e2b03551e64dda58b19dabe829ea31d930 (patch)
tree0b71595d5bff1431261ebf06ab78fa0ed5effbe8
parent586a8dabb2dccb88772e3ce251c221c5c45f4d14 (diff)
downloadeclipse.platform.swt-6b9c26e2b03551e64dda58b19dabe829ea31d930.tar.gz
eclipse.platform.swt-6b9c26e2b03551e64dda58b19dabe829ea31d930.tar.xz
eclipse.platform.swt-6b9c26e2b03551e64dda58b19dabe829ea31d930.zip
add debug statement
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java
index ffad07d278..d74baa5f75 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java
@@ -2204,7 +2204,6 @@ public class Accessible {
/* IAccessible::get_accDescription([in] varChild, [out] pszDescription) */
int get_accDescription(long /*int*/ varChild, long /*int*/ pszDescription) {
- if (DEBUG) print(this + ".IAccessible::get_accDescription");
/*
* MSAA: "The accDescription property is not supported in the transition to
* UI Automation. MSAA servers and applications should not use it."
@@ -2224,7 +2223,10 @@ public class Accessible {
code = iaccessible.get_accDescription(varChild, pszDescription);
if (code == COM.E_INVALIDARG) code = COM.S_FALSE; // proxy doesn't know about app childID
// TEMPORARY CODE - process tree even if there are no apps listening
- if (accessibleListenersSize() == 0 && !(control instanceof Tree)) return code;
+ if (accessibleListenersSize() == 0 && !(control instanceof Tree)) {
+ if (DEBUG) print(this + ".IAccessible::get_accDescription(" + v.lVal + ") returning super" + hresult(code));
+ return code;
+ }
if (code == COM.S_OK) {
long /*int*/[] pDescription = new long /*int*/[1];
COM.MoveMemory(pDescription, pszDescription, OS.PTR_SIZEOF);
@@ -2272,6 +2274,7 @@ public class Accessible {
AccessibleListener listener = (AccessibleListener) accessibleListeners.elementAt(i);
listener.getDescription(event);
}
+ if (DEBUG) print(this + ".IAccessible::get_accDescription(" + v.lVal + ") returning " + event.result + hresult(event.result == null ? code : event.result.length() == 0 ? COM.S_FALSE : COM.S_OK));
if (event.result == null) return code;
if (event.result.length() == 0) return COM.S_FALSE;
setString(pszDescription, event.result);

Back to the top