summaryrefslogtreecommitdiff
path: root/toolkit/test/accessibility/AccessibilityTreeModel.java
diff options
context:
space:
mode:
authorAndre Fischer <af@openoffice.org>2002-06-21 10:20:19 +0000
committerAndre Fischer <af@openoffice.org>2002-06-21 10:20:19 +0000
commita54ab690bba6fbb43b7663bd9bf2292674156dce (patch)
treeb86392fe5470e26b098c9028bb27fe4a1c1d7fc8 /toolkit/test/accessibility/AccessibilityTreeModel.java
parent1f9282b7f8c5bc8df5ab7367eaaf9f2bfaf7eaaf (diff)
Printing stack trace of caught exceptions. Adding role name to unnamed accessible objects.
Diffstat (limited to 'toolkit/test/accessibility/AccessibilityTreeModel.java')
-rw-r--r--toolkit/test/accessibility/AccessibilityTreeModel.java36
1 files changed, 17 insertions, 19 deletions
diff --git a/toolkit/test/accessibility/AccessibilityTreeModel.java b/toolkit/test/accessibility/AccessibilityTreeModel.java
index d627757d6b7e..01f480be5964 100644
--- a/toolkit/test/accessibility/AccessibilityTreeModel.java
+++ b/toolkit/test/accessibility/AccessibilityTreeModel.java
@@ -248,7 +248,9 @@ public class AccessibilityTreeModel
}
catch (Exception e)
{
- System.out.println ("caught exception while removing child " + aNode + " : " + e);
+ System.out.println ("caught exception while removing child "
+ + aNode + " : " + e);
+ e.printStackTrace ();
return false;
}
return true;
@@ -268,7 +270,9 @@ public class AccessibilityTreeModel
}
catch (Exception e)
{
- System.out.println ("caught exception while removing node " + aNode + " : " + e);
+ System.out.println ("caught exception while removing node "
+ + aNode + " : " + e);
+ e.printStackTrace();
}
}
@@ -294,8 +298,9 @@ public class AccessibilityTreeModel
}
catch (Exception e)
{
- System.out.println ("caught exception while adding child " + xNewChild
- + " to parent " + aParentNode + ": " + e);
+ System.out.println ("caught exception while adding child "
+ + xNewChild + " to parent " + aParentNode + ": " + e);
+ e.printStackTrace ();
}
return aChildNode;
}
@@ -326,7 +331,9 @@ public class AccessibilityTreeModel
}
catch (Exception e)
{
- System.out.println ("caught exception while adding node " + aNode + ": " + e);
+ System.out.println ("caught exception while adding node "
+ + aNode + ": " + e);
+ e.printStackTrace ();
}
return bRet;
}
@@ -591,20 +598,9 @@ public class AccessibilityTreeModel
sDisplay = xContext.getAccessibleName();
if (sDisplay.length()==0)
{
- sDisplay = "<no name>";
- // Try to determine some usefull name that indicates the
- // function of the object in question.
- XServiceName xSN = (XServiceName) UnoRuntime.queryInterface (
- XServiceName.class, xAccessible);
- if (xSN != null)
- sDisplay = xSN.getServiceName ();
- else
- {
- XServiceInfo xSI = (XServiceInfo) UnoRuntime.queryInterface (
- XServiceInfo.class, xAccessible);
- if (xSI != null)
- sDisplay = xSI.getImplementationName ();
- }
+ sDisplay = "<no name> Role: "
+ + AccessibleContextHandler.GetRoleName (
+ xContext.getAccessibleRole());
}
}
else
@@ -907,6 +903,7 @@ public class AccessibilityTreeModel
{
System.out.println(
"Exception during event delivery: " + e );
+ e.printStackTrace();
}
}
}
@@ -923,6 +920,7 @@ public class AccessibilityTreeModel
{
// can't wait? odd!
System.err.println("Can't wait!");
+ e.printStackTrace();
}
}
}