Bug 15378 - Accessibility API does not work for getValue for a shell
Summary: Accessibility API does not work for getValue for a shell
Status: RESOLVED DUPLICATE of bug 15559
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Carolyn MacLeod CLA
QA Contact:
URL:
Whiteboard:
Keywords: accessibility
Depends on:
Blocks: 15320
  Show dependency tree
 
Reported: 2002-05-06 17:30 EDT by Tod Creasey CLA
Modified: 2002-05-30 17:38 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tod Creasey CLA 2002-05-06 17:30:25 EDT
If you want to use getValue to update the value of the text for a Shell this 
does not currently get propogated out even though it does get called.

I added the following to the configureShell method in 
org.eclipse.jface.dialogs.MessageDialog

shell.getAccessible().addAccessibleControlListener(
   new AccessibleControlListener() {
         public void getValue(AccessibleControlEvent e){
	   String readValue = shell.getText() + message;
	   e.result = readValue;
}	

The method was being hit but when I looked at the Shell text using inspect32 it 
was only the visible text on the shell that it found. It appears the change is 
being looked up but not propagated.
Comment 1 Carolyn MacLeod CLA 2002-05-07 11:43:18 EDT
It is actually working, but not if you hover over the title bar of the shell.
If you hover over the client area of the shell, you will see the new value.
Unfortunately, focus is the real problem for your dialogs. The dialog button 
gets focus, and the value of the shell is never read. I am looking into this to 
see if there is anything I can do to get dialogs to work properly.
Comment 2 Tod Creasey CLA 2002-05-08 13:00:27 EDT
Look at the Detect and Repair Dialog from Word (in help menu). It is a dialog 
based on a window and looks a lot like our project delete dialog and does work 
with JAWS.
Comment 3 Carolyn MacLeod CLA 2002-05-21 00:31:16 EDT
Deferred to fix pass 1
Comment 4 Carolyn MacLeod CLA 2002-05-30 17:38:49 EDT

*** This bug has been marked as a duplicate of 15559 ***