74 self.__module = os.path.basename(self.__filename) |
74 self.__module = os.path.basename(self.__filename) |
75 |
75 |
76 language = self.__editor.getLanguage() |
76 language = self.__editor.getLanguage() |
77 if language in EditorOutlineModel.SupportedLanguages: |
77 if language in EditorOutlineModel.SupportedLanguages: |
78 if language == "IDL": |
78 if language == "IDL": |
79 from Utilities.ClassBrowsers import idlclbr |
79 from eric7.Utilities.ClassBrowsers import idlclbr |
80 |
80 |
81 dictionary = idlclbr.scan( |
81 dictionary = idlclbr.scan( |
82 self.__editor.text(), self.__filename, self.__module |
82 self.__editor.text(), self.__filename, self.__module |
83 ) |
83 ) |
84 idlclbr._modules.clear() |
84 idlclbr._modules.clear() |
85 elif language == "Protocol": |
85 elif language == "Protocol": |
86 from Utilities.ClassBrowsers import protoclbr |
86 from eric7.Utilities.ClassBrowsers import protoclbr |
87 |
87 |
88 dictionary = protoclbr.scan( |
88 dictionary = protoclbr.scan( |
89 self.__editor.text(), self.__filename, self.__module |
89 self.__editor.text(), self.__filename, self.__module |
90 ) |
90 ) |
91 protoclbr._modules.clear() |
91 protoclbr._modules.clear() |
92 elif language == "Ruby": |
92 elif language == "Ruby": |
93 from Utilities.ClassBrowsers import rbclbr |
93 from eric7.Utilities.ClassBrowsers import rbclbr |
94 |
94 |
95 dictionary = rbclbr.scan( |
95 dictionary = rbclbr.scan( |
96 self.__editor.text(), self.__filename, self.__module |
96 self.__editor.text(), self.__filename, self.__module |
97 ) |
97 ) |
98 rbclbr._modules.clear() |
98 rbclbr._modules.clear() |
99 elif language == "JavaScript": |
99 elif language == "JavaScript": |
100 from Utilities.ClassBrowsers import jsclbr |
100 from eric7.Utilities.ClassBrowsers import jsclbr |
101 |
101 |
102 dictionary = jsclbr.scan( |
102 dictionary = jsclbr.scan( |
103 self.__editor.text(), self.__filename, self.__module |
103 self.__editor.text(), self.__filename, self.__module |
104 ) |
104 ) |
105 jsclbr._modules.clear() |
105 jsclbr._modules.clear() |
106 elif language in ("Python3", "MicroPython", "Cython"): |
106 elif language in ("Python3", "MicroPython", "Cython"): |
107 from Utilities.ClassBrowsers import pyclbr |
107 from eric7.Utilities.ClassBrowsers import pyclbr |
108 |
108 |
109 dictionary = pyclbr.scan( |
109 dictionary = pyclbr.scan( |
110 self.__editor.text(), self.__filename, self.__module |
110 self.__editor.text(), self.__filename, self.__module |
111 ) |
111 ) |
112 pyclbr._modules.clear() |
112 pyclbr._modules.clear() |