Hi all,
Just for practice, I'm trying to make NVDA see that the code window in RDI
is a multi-line one. My plugin seems to work, as the control takes on the
name I give it when I move to said control, and the log viewer shows that
name. However, my new state doesn't show up, and I see no errors. What did
I do wrong? javaw.py:
import api
from appModules import eclipse
import appModuleHandler
import controlTypes
import NVDAObjects
import tones
class AppModule(appModuleHandler.AppModule):
def event_NVDAObject_init(self, obj):
if isinstance(obj, NVDAObjects.window.Window) and
obj.windowClassName == "SWT_Window0" and obj.role ==
controlTypes.ROLE_EDITABLETEXT:
obj.name = "File Contents"
obj.states.add(controlTypes.STATE_MULTILINE)
--
Alex Hall
Automatic Distributors, IT department
ahall@xxxxxxxxxxxx