eric6/Plugins/PluginEricapi.py

changeset 7256
4ef3b78ebb4e
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7255:d595f6f9cbf8 7256:4ef3b78ebb4e
29 deactivateable = True 29 deactivateable = True
30 version = UI.Info.VersionOnly 30 version = UI.Info.VersionOnly
31 className = "EricapiPlugin" 31 className = "EricapiPlugin"
32 packageName = "__core__" 32 packageName = "__core__"
33 shortDescription = "Show the Ericapi dialogs." 33 shortDescription = "Show the Ericapi dialogs."
34 longDescription = """This plugin implements the Ericapi dialogs.""" \ 34 longDescription = (
35 """ Ericapi is used to generate a QScintilla API file for Python and""" \ 35 """This plugin implements the Ericapi dialogs."""
36 """ Ericapi is used to generate a QScintilla API file for Python and"""
36 """ Ruby projects.""" 37 """ Ruby projects."""
38 )
37 pyqtApi = 2 39 pyqtApi = 2
38 # End-Of-Header 40 # End-Of-Header
39 41
40 error = "" 42 error = ""
41 43
145 147
146 def __doEricapi(self): 148 def __doEricapi(self):
147 """ 149 """
148 Private slot to perform the eric6_api api generation. 150 Private slot to perform the eric6_api api generation.
149 """ 151 """
150 from DocumentationPlugins.Ericapi.EricapiConfigDialog import \ 152 from DocumentationPlugins.Ericapi.EricapiConfigDialog import (
151 EricapiConfigDialog 153 EricapiConfigDialog
154 )
152 eolTranslation = { 155 eolTranslation = {
153 '\r': 'cr', 156 '\r': 'cr',
154 '\n': 'lf', 157 '\n': 'lf',
155 '\r\n': 'crlf', 158 '\r\n': 'crlf',
156 } 159 }
165 if not project.useSystemEol(): 168 if not project.useSystemEol():
166 args.append( 169 args.append(
167 "--eol={0}".format(eolTranslation[project.getEolString()])) 170 "--eol={0}".format(eolTranslation[project.getEolString()]))
168 171
169 # now do the call 172 # now do the call
170 from DocumentationPlugins.Ericapi.EricapiExecDialog import \ 173 from DocumentationPlugins.Ericapi.EricapiExecDialog import (
171 EricapiExecDialog 174 EricapiExecDialog
175 )
172 dia = EricapiExecDialog("Ericapi") 176 dia = EricapiExecDialog("Ericapi")
173 res = dia.start(args, project.ppath) 177 res = dia.start(args, project.ppath)
174 if res: 178 if res:
175 dia.exec_() 179 dia.exec_()
176 180

eric ide

mercurial