166 """ |
166 """ |
167 super().__init__(parent) |
167 super().__init__(parent) |
168 |
168 |
169 self.ui = parent |
169 self.ui = parent |
170 |
170 |
171 # TODO: add JavaScript below |
|
172 self.__progLanguages = [ |
171 self.__progLanguages = [ |
173 "Python2", |
172 "Python2", |
174 "Python3", |
173 "Python3", |
175 "Ruby", |
174 "Ruby", |
|
175 "JavaScript", |
176 ] |
176 ] |
177 |
177 |
178 # TODO: add JavaScript below |
|
179 self.sourceExtensions = { |
178 self.sourceExtensions = { |
180 "Python2": Preferences.getPython("PythonExtensions"), |
179 "Python2": Preferences.getPython("PythonExtensions"), |
181 "Python3": Preferences.getPython("Python3Extensions"), |
180 "Python3": Preferences.getPython("Python3Extensions"), |
182 "Ruby": ['.rb'], |
181 "Ruby": ['.rb'], |
183 "Mixed": Preferences.getPython("Python3Extensions") + ['.rb'], |
182 "JavaScript": ['.js'], |
|
183 "Mixed": Preferences.getPython("Python3Extensions") + \ |
|
184 ['.rb', '.js'], |
184 } |
185 } |
185 |
186 |
186 self.dbgFilters = { |
187 self.dbgFilters = { |
187 "Python2": self.tr( |
188 "Python2": self.tr( |
188 "Python2 Files (*.py2);;" |
189 "Python2 Files (*.py2);;" |