Package appModules :: Module eclipse
[hide private]
[frames] | no frames]

Source Code for Module appModules.eclipse

 1  #appModules/eclipse.py 
 2  #A part of NonVisual Desktop Access (NVDA) 
 3  #This file is covered by the GNU General Public License. 
 4  #See the file COPYING for more details. 
 5  #Copyright (C) 2010 James Teh <jamie@jantrid.net> 
 6   
 7  import controlTypes 
 8  import appModuleHandler 
 9   
10 -class AppModule(appModuleHandler.AppModule):
11
12 - def event_NVDAObject_init(self, obj):
13 if obj.windowClassName == "SysTreeView32" and obj.role == controlTypes.ROLE_TREEVIEWITEM and controlTypes.STATE_FOCUSED not in obj.states: 14 # Eclipse tree views seem to fire a focus event on the previously focused item before firing focus on the new item (EclipseBug:315339). 15 # Try to filter this out. 16 obj.shouldAllowIAccessibleFocusEvent = False
17