26 deactivateable = True |
26 deactivateable = True |
27 version = UI.Info.VersionOnly |
27 version = UI.Info.VersionOnly |
28 className = "WizardEricPluginWizard" |
28 className = "WizardEricPluginWizard" |
29 packageName = "__core__" |
29 packageName = "__core__" |
30 shortDescription = "Wizard for the creation of an eric plug-in file." |
30 shortDescription = "Wizard for the creation of an eric plug-in file." |
31 longDescription = \ |
31 longDescription = ( |
32 """This plug-in implements a wizard to generate code for""" \ |
32 """This plug-in implements a wizard to generate code for""" |
33 """ an eric plug-in main script file.""" |
33 """ an eric plug-in main script file.""" |
|
34 ) |
34 needsRestart = False |
35 needsRestart = False |
35 pyqtApi = 2 |
36 pyqtApi = 2 |
36 # End-of-Header |
37 # End-of-Header |
37 |
38 |
38 error = "" |
39 error = "" |
113 |
114 |
114 @param editor reference to the current editor |
115 @param editor reference to the current editor |
115 @return generated code (string), the plug-in package name (string) |
116 @return generated code (string), the plug-in package name (string) |
116 and a flag indicating success (boolean) |
117 and a flag indicating success (boolean) |
117 """ |
118 """ |
118 from WizardPlugins.EricPluginWizard.PluginWizardDialog import \ |
119 from WizardPlugins.EricPluginWizard.PluginWizardDialog import ( |
119 PluginWizardDialog |
120 PluginWizardDialog |
|
121 ) |
120 dlg = PluginWizardDialog(None) |
122 dlg = PluginWizardDialog(None) |
121 if dlg.exec_() == QDialog.Accepted: |
123 if dlg.exec_() == QDialog.Accepted: |
122 return (dlg.getCode(), dlg.packageName(), True) |
124 return (dlg.getCode(), dlg.packageName(), True) |
123 else: |
125 else: |
124 return (None, "", False) |
126 return (None, "", False) |