src/eric7/Project/QuickFindFileDialog.py

branch
eric7
changeset 9514
2b104ad132a4
parent 9473
3f23dbf37dbe
child 9516
0f023e61a9b5
equal deleted inserted replaced
9513:6e260b424396 9514:2b104ad132a4
143 Private method to generate a set of locations that can be searched. 143 Private method to generate a set of locations that can be searched.
144 144
145 @yield set of files in our project 145 @yield set of files in our project
146 @ytype str 146 @ytype str
147 """ 147 """
148 # TODO: change this to use fileType
148 for typ in [ 149 for typ in [
149 "SOURCES", 150 "SOURCES",
150 "FORMS", 151 "FORMS",
151 "INTERFACES", 152 "INTERFACES",
152 "PROTOCOLS", 153 "PROTOCOLS",
153 "RESOURCES", 154 "RESOURCES",
154 "TRANSLATIONS", 155 "TRANSLATIONS",
155 "OTHERS", 156 "OTHERS",
156 ]: 157 ]:
157 entries = self.project.pdata.get(typ) 158 entries = self.project.getProjectData(dataKey=typ, default=[])
158 yield from entries[:] 159 yield from entries[:]
159 160
160 def __sortedMatches(self, items, searchTerm): 161 def __sortedMatches(self, items, searchTerm):
161 """ 162 """
162 Private method to find the subset of items which match a search term. 163 Private method to find the subset of items which match a search term.

eric ide

mercurial