PluginAssistantEric.py

changeset 138
e5f860436ab9
parent 136
5cfe53b474a9
child 140
a0ea7418d433
equal deleted inserted replaced
137:78dc9e57b3ba 138:e5f860436ab9
22 # Start-Of-Header 22 # Start-Of-Header
23 name = "Assistant Eric Plugin" 23 name = "Assistant Eric Plugin"
24 author = "Detlev Offenbach <detlev@die-offenbachs.de>" 24 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
25 autoactivate = True 25 autoactivate = True
26 deactivateable = True 26 deactivateable = True
27 version = "3.2.2" 27 version = "3.2.3"
28 className = "AssistantEricPlugin" 28 className = "AssistantEricPlugin"
29 packageName = "AssistantEric" 29 packageName = "AssistantEric"
30 shortDescription = "Alternative autocompletion and calltips provider." 30 shortDescription = "Alternative autocompletion and calltips provider."
31 longDescription = \ 31 longDescription = \
32 """This plugin implements an alternative autocompletion and""" \ 32 """This plugin implements an alternative autocompletion and""" \
128 """ 128 """
129 Private slot to (re)initialize the plugin. 129 Private slot to (re)initialize the plugin.
130 """ 130 """
131 self.__object = None 131 self.__object = None
132 132
133 def __checkUiVersion(self):
134 """
135 Private method to check, if the IDE has a suitable version.
136
137 @return flag indicating a suitable version (boolean)
138 """
139 global error
140
141 suitable = self.__ui.versionIsNewer("5.99.99", "20140704")
142 if not suitable:
143 error = self.tr("Your version of eric6 is not supported.")
144 return suitable
145
146 def __checkQSql(self): 133 def __checkQSql(self):
147 """ 134 """
148 Private method to perform some checks on QSql. 135 Private method to perform some checks on QSql.
149 136
150 @return flag indicating QSql is ok (boolean) 137 @return flag indicating QSql is ok (boolean)
171 @return tuple of None and activation status (boolean) 158 @return tuple of None and activation status (boolean)
172 """ 159 """
173 global error 160 global error
174 error = "" # clear previous error 161 error = "" # clear previous error
175 162
176 if not self.__checkUiVersion() or \ 163 if not self.__checkQSql():
177 not self.__checkQSql():
178 return None, False 164 return None, False
179 165
180 global assistantEricPluginObject 166 global assistantEricPluginObject
181 assistantEricPluginObject = self 167 assistantEricPluginObject = self
182 168

eric ide

mercurial