21 # Start-Of-Header |
21 # Start-Of-Header |
22 name = "Assistant Eric Plugin" |
22 name = "Assistant Eric Plugin" |
23 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
23 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
24 autoactivate = True |
24 autoactivate = True |
25 deactivateable = True |
25 deactivateable = True |
26 version = "2.2.1" |
26 version = "2.3.0" |
27 className = "AssistantEricPlugin" |
27 className = "AssistantEricPlugin" |
28 packageName = "AssistantEric" |
28 packageName = "AssistantEric" |
29 shortDescription = "Alternative autocompletion and calltips provider." |
29 shortDescription = "Alternative autocompletion and calltips provider." |
30 longDescription = """This plugin implements an alternative autocompletion and""" \ |
30 longDescription = """This plugin implements an alternative autocompletion and""" \ |
31 """ calltips provider.""" |
31 """ calltips provider.""" |
107 self.__initialize() |
107 self.__initialize() |
108 |
108 |
109 self.__defaults = { |
109 self.__defaults = { |
110 "AutoCompletionEnabled": False, |
110 "AutoCompletionEnabled": False, |
111 "AutoCompletionSource": AcsAPIs | AcsProject, |
111 "AutoCompletionSource": AcsAPIs | AcsProject, |
|
112 "AutoCompletionFollowHierarchy": False, |
112 "CalltipsEnabled": False, |
113 "CalltipsEnabled": False, |
113 "CallTipsContextShown": True, |
114 "CallTipsContextShown": True, |
|
115 "CallTipsFollowHierarchy": False, |
114 } |
116 } |
115 |
117 |
116 self.__translator = None |
118 self.__translator = None |
117 self.__loadTranslator() |
119 self.__loadTranslator() |
118 |
120 |
217 |
219 |
218 @param key the key of the value to get |
220 @param key the key of the value to get |
219 @param prefClass preferences class used as the storage area |
221 @param prefClass preferences class used as the storage area |
220 @return the requested refactoring setting |
222 @return the requested refactoring setting |
221 """ |
223 """ |
222 if key in ["AutoCompletionEnabled", "CalltipsEnabled", "CallTipsContextShown"]: |
224 if key in ["AutoCompletionEnabled", "AutoCompletionFollowHierarchy", |
|
225 "CalltipsEnabled", "CallTipsContextShown", |
|
226 "CallTipsFollowHierarchy"]: |
223 return Preferences.toBool(Preferences.Prefs.settings.value( |
227 return Preferences.toBool(Preferences.Prefs.settings.value( |
224 "AssistantEric/" + key, self.__defaults[key])) |
228 "AssistantEric/" + key, self.__defaults[key])) |
225 else: |
229 else: |
226 return int(Preferences.Prefs.settings.value("AssistantEric/" + key, |
230 return int(Preferences.Prefs.settings.value("AssistantEric/" + key, |
227 self.__defaults[key])) |
231 self.__defaults[key])) |