Re: [orca-list] helping making eclipse debug more accessible with orca



Hey JosÃ.

Did you re-run autogen.sh?

Assuming you did, I'd have to see what all changes you made. I assume
that you're working in a local branch you created for this task rather
than master. Therefore, it'll be safe for you to use 'git add' to add
any and all new files that you've created as part of implementing this
new script.

Having done so, if you could then do a 'git format-patch master' and
send me the result, I'd be more than happy to take a look.

Thanks again so much for working on this! Take care.
--joanie


On Sat, 2010-05-08 at 22:14 -0300, jose vilmar estacio de souza wrote:
Hi Joanie.
Probably I should have done something wrong because orcas are not 
finding the script.

     app.name='Eclipse' name='Debug - teste/src/Ts2.java - Eclipse SDK ' 
role='frame' state='active enabled resizable sensitive showing visible' 
relations=''
Looking for script at orca-scripts.Eclipse.py...
...could not find orca-scripts.Eclipse.py
Looking for script at scripts.Eclipse.py...
...could not find scripts.Eclipse.py
Looking for script at scripts.apps.Eclipse.py...
...could not find scripts.apps.Eclipse.py
Looking for script at scripts.toolkits.Eclipse.py...
...could not find scripts.toolkits.Eclipse.py
Looking for toolkit script GAIL.py...
...could not find GAIL.py
Looking for toolkit script GAIL.py...
...could not find GAIL.py
Looking for toolkit script GAIL.py...
...could not find GAIL.py
Looking for toolkit script GAIL.py...
NEW SCRIPT: Eclipse (module=orca.scripts.toolkits.GAIL)
...found scripts.toolkits.GAIL.py
ACTIVE SCRIPT: Eclipse (module=orca.scripts.toolkits.GAIL) 
(reason=window:activate event)

Thanks!

On 05/08/2010 12:45 AM, Joanmarie Diggs wrote:
Hey JosÃ.

   
I decided to go ahead and I'll try to implement a custom script for orca.
     
You so rock. Thanks!

   
1. In what directory should I put the script?
     
Looking at your debug.out, the script name will need to be Eclipse (with
the first 'e' being capitalized) because that's what the app.name is. So
make a new directory within the apps directory of orca called Eclipse:

     orca/src/orca/scripts/apps/Eclipse

Inside your new Eclipse directory, you'll need at the very least:

* __init__.py
* Makefile.am
* script.py

You'll also need to add your new Eclipse directory to:

* orca/configure.in
* orca/src/orca/scripts/apps/Makefile.am

As an example, you might want to take a look at the commit for the
Banshee script which Eitan recently contributed:
http://git.gnome.org/browse/orca/commit/?id=226ee58b69d8fe94b3a47cf6379508dc9b03c35c

   
2. I think that the new script must extends class Script. This is correct?
     
Yes, in particular, default.Script. That way, everything that you don't
override will still be handled by the default script like it currently
is.

   
3. It seems to me that I have to reimplement the function
_presentTextAtNewCaretPosition.
     
Bingo. Nice job! Just identify the particular case you're looking at. If
that case is found, do your custom presentation. Otherwise, pass things
along to the default method.

Good luck and keep us posted!
--joanie

   





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]