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



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]