18 # Start-Of-Header |
19 # Start-Of-Header |
19 name = "Camel Case Handling Plug-in" |
20 name = "Camel Case Handling Plug-in" |
20 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
21 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
21 autoactivate = True |
22 autoactivate = True |
22 deactivateable = True |
23 deactivateable = True |
23 version = "3.0.0" |
24 version = "3.1.0" |
24 className = "SplitMergeCamelCasePlugin" |
25 className = "SplitMergeCamelCasePlugin" |
25 packageName = "SplitMergeCamelCase" |
26 packageName = "SplitMergeCamelCase" |
26 shortDescription = "Split, merge or convert camel case text" |
27 shortDescription = "Split, merge or convert camel case text" |
27 longDescription = ( |
28 longDescription = ( |
28 """This plug-in implements a tool to split, merge or convert""" |
29 """This plug-in implements a tool to split, merge or convert""" |
190 """ |
191 """ |
191 Private slot called, when an editor was closed. |
192 Private slot called, when an editor was closed. |
192 |
193 |
193 @param editor reference to the editor (QScintilla.Editor) |
194 @param editor reference to the editor (QScintilla.Editor) |
194 """ |
195 """ |
195 try: |
196 with contextlib.suppress(KeyError): |
196 del self.__editors[editor] |
197 del self.__editors[editor] |
197 except KeyError: |
|
198 pass |
|
199 |
198 |
200 def __editorShowMenu(self, menuName, menu, editor): |
199 def __editorShowMenu(self, menuName, menu, editor): |
201 """ |
200 """ |
202 Private slot called, when the the editor context menu or a submenu is |
201 Private slot called, when the the editor context menu or a submenu is |
203 about to be shown. |
202 about to be shown. |