summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2003-06-12 06:58:58 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2003-06-12 06:58:58 +0000
commita861b6a5af3765a4f8507c7d3c3b7c32497b3b90 (patch)
tree9c75b14f00b72947c83aa9d8ed278327225e6a13 /accessibility
parent4f74af7c9f401a443d0d83ddcec5d34f8ac524d7 (diff)
INTEGRATION: CWS uaa04 (1.3.12); FILE MERGED
2003/06/02 12:49:52 obr 1.3.12.1: #109747# implement getAccessibleContext in a failsafe way, so that it can't kill the dispatch thread of the Java AccessBridge for Windows
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/bridge/org/openoffice/java/accessibility/Button.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/accessibility/bridge/org/openoffice/java/accessibility/Button.java b/accessibility/bridge/org/openoffice/java/accessibility/Button.java
index 3cc36f45d970..0771890ba2fe 100644
--- a/accessibility/bridge/org/openoffice/java/accessibility/Button.java
+++ b/accessibility/bridge/org/openoffice/java/accessibility/Button.java
@@ -66,12 +66,9 @@ class Button extends AbstractButton implements javax.accessibility.Accessible {
super(xAccessible, xAccessibleContext);
}
- /** Returns the AccessibleContext associated with this object */
- public javax.accessibility.AccessibleContext getAccessibleContext() {
- if (accessibleContext == null) {
- accessibleContext = new AccessibleButton();
- }
- return accessibleContext;
+ /** Creates the AccessibleContext associated with this object */
+ public javax.accessibility.AccessibleContext createAccessibleContext() {
+ return new AccessibleButton();
}
protected class AccessibleButton extends AccessibleAbstractButton {