Sun, 22 Mar 2015 17:33:44 +0100
Fixed a few code style issues.
44
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
1 | <!DOCTYPE html> |
17 | 2 | <html><head> |
3 | <title>Plugin_Refactoring_Rope.RefactoringRope.Refactoring</title> | |
44
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
4 | <meta charset="UTF-8"> |
17 | 5 | <style> |
6 | body { | |
7 | background: #EDECE6; | |
8 | margin: 0em 1em 10em 1em; | |
9 | color: black; | |
10 | } | |
11 | ||
12 | h1 { color: white; background: #85774A; } | |
13 | h2 { color: white; background: #85774A; } | |
14 | h3 { color: white; background: #9D936E; } | |
15 | h4 { color: white; background: #9D936E; } | |
16 | ||
17 | a { color: #BA6D36; } | |
18 | ||
19 | </style> | |
20 | </head> | |
21 | <body><a NAME="top" ID="top"></a> | |
22 | <h1>Plugin_Refactoring_Rope.RefactoringRope.Refactoring</h1> | |
23 | <p> | |
24 | Module implementing the refactoring interface to rope. | |
25 | </p> | |
26 | <h3>Global Attributes</h3> | |
27 | <table> | |
28 | <tr><td>None</td></tr> | |
29 | </table> | |
30 | <h3>Classes</h3> | |
31 | <table> | |
32 | <tr> | |
33 | <td><a href="#Refactoring">Refactoring</a></td> | |
34 | <td>Class implementing the refactoring interface to rope.</td> | |
35 | </tr> | |
36 | </table> | |
37 | <h3>Functions</h3> | |
38 | <table> | |
39 | <tr><td>None</td></tr> | |
40 | </table> | |
41 | <hr /><hr /> | |
42 | <a NAME="Refactoring" ID="Refactoring"></a> | |
43 | <h2>Refactoring</h2> | |
44 | <p> | |
45 | Class implementing the refactoring interface to rope. | |
46 | </p> | |
47 | <h3>Derived from</h3> | |
48 | QObject | |
49 | <h3>Class Attributes</h3> | |
50 | <table> | |
51 | <tr><td>None</td></tr> | |
52 | </table> | |
44
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
53 | <h3>Class Methods</h3> |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
54 | <table> |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
55 | <tr><td>None</td></tr> |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
56 | </table> |
17 | 57 | <h3>Methods</h3> |
58 | <table> | |
59 | <tr> | |
60 | <td><a href="#Refactoring.__init__">Refactoring</a></td> | |
61 | <td>Constructor</td> | |
62 | </tr><tr> | |
63 | <td><a href="#Refactoring.__canRedo">__canRedo</a></td> | |
64 | <td>Private slot to check, if there are changes to be redone.</td> | |
65 | </tr><tr> | |
66 | <td><a href="#Refactoring.__canRedoFile">__canRedoFile</a></td> | |
67 | <td>Private slot to check, if there are redoable changes for a resource.</td> | |
68 | </tr><tr> | |
69 | <td><a href="#Refactoring.__canUndo">__canUndo</a></td> | |
70 | <td>Private slot to check, if there are changes to be undone.</td> | |
71 | </tr><tr> | |
72 | <td><a href="#Refactoring.__canUndoFile">__canUndoFile</a></td> | |
73 | <td>Private slot to check, if there are undoable changes for a resource.</td> | |
74 | </tr><tr> | |
75 | <td><a href="#Refactoring.__changeOccurrences">__changeOccurrences</a></td> | |
76 | <td>Private slot to perform the Change Occurrences refactoring.</td> | |
77 | </tr><tr> | |
78 | <td><a href="#Refactoring.__changeSignature">__changeSignature</a></td> | |
79 | <td>Private slot to change the signature of a method or function.</td> | |
80 | </tr><tr> | |
81 | <td><a href="#Refactoring.__clearHistory">__clearHistory</a></td> | |
82 | <td>Private slot to clear the redo and undo lists.</td> | |
83 | </tr><tr> | |
84 | <td><a href="#Refactoring.__configChanged">__configChanged</a></td> | |
85 | <td>Private slot called, when the rope config file has changed.</td> | |
86 | </tr><tr> | |
87 | <td><a href="#Refactoring.__convertLocalToAttribute">__convertLocalToAttribute</a></td> | |
88 | <td>Private slot to convert a local variable to an attribute.</td> | |
89 | </tr><tr> | |
90 | <td><a href="#Refactoring.__defaultConfig">__defaultConfig</a></td> | |
91 | <td>Private slot to return the contents of rope's default configuration.</td> | |
92 | </tr><tr> | |
93 | <td><a href="#Refactoring.__doExtract">__doExtract</a></td> | |
94 | <td>Private method to perform the extract refactoring.</td> | |
95 | </tr><tr> | |
96 | <td><a href="#Refactoring.__doImports">__doImports</a></td> | |
97 | <td>Private method to perform the various imports refactorings.</td> | |
98 | </tr><tr> | |
99 | <td><a href="#Refactoring.__doRename">__doRename</a></td> | |
100 | <td>Private method to perform the various renaming refactorings.</td> | |
101 | </tr><tr> | |
102 | <td><a href="#Refactoring.__editConfig">__editConfig</a></td> | |
103 | <td>Private slot to open the rope configuration file in an editor.</td> | |
104 | </tr><tr> | |
105 | <td><a href="#Refactoring.__encapsulateAttribute">__encapsulateAttribute</a></td> | |
106 | <td>Private slot to encapsulate an attribute.</td> | |
107 | </tr><tr> | |
108 | <td><a href="#Refactoring.__extractLocalVariable">__extractLocalVariable</a></td> | |
109 | <td>Private slot to handle the Extract Local Variable action.</td> | |
110 | </tr><tr> | |
111 | <td><a href="#Refactoring.__extractMethod">__extractMethod</a></td> | |
112 | <td>Private slot to handle the Extract Method action.</td> | |
113 | </tr><tr> | |
114 | <td><a href="#Refactoring.__getFileRedoList">__getFileRedoList</a></td> | |
115 | <td>Private slot to get a list of redoable changes.</td> | |
116 | </tr><tr> | |
117 | <td><a href="#Refactoring.__getFileUndoList">__getFileUndoList</a></td> | |
118 | <td>Private slot to get a list of undoable changes.</td> | |
119 | </tr><tr> | |
44
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
120 | <td><a href="#Refactoring.__getOffset">__getOffset</a></td> |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
121 | <td>Private method to get the offset into the text treating CRLF as ONE character.</td> |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
122 | </tr><tr> |
17 | 123 | <td><a href="#Refactoring.__importsExpandStar">__importsExpandStar</a></td> |
124 | <td>Private slot to expand star imports.</td> | |
125 | </tr><tr> | |
126 | <td><a href="#Refactoring.__importsFromToImport">__importsFromToImport</a></td> | |
127 | <td>Private slot to transform from imports to plain imports.</td> | |
128 | </tr><tr> | |
129 | <td><a href="#Refactoring.__importsHandleLong">__importsHandleLong</a></td> | |
130 | <td>Private slot to handle long imports.</td> | |
131 | </tr><tr> | |
132 | <td><a href="#Refactoring.__importsOrganize">__importsOrganize</a></td> | |
133 | <td>Private slot to organize imports.</td> | |
134 | </tr><tr> | |
135 | <td><a href="#Refactoring.__importsRelativeToAbsolute">__importsRelativeToAbsolute</a></td> | |
136 | <td>Private slot to transform relative to absolute imports.</td> | |
137 | </tr><tr> | |
138 | <td><a href="#Refactoring.__inline">__inline</a></td> | |
139 | <td>Private slot to handle the Inline Local Variable action.</td> | |
140 | </tr><tr> | |
141 | <td><a href="#Refactoring.__inlineArgumentDefault">__inlineArgumentDefault</a></td> | |
142 | <td>Private slot to inline the default value of a parameter of a method or function.</td> | |
143 | </tr><tr> | |
144 | <td><a href="#Refactoring.__introduceFactoryMethod">__introduceFactoryMethod</a></td> | |
145 | <td>Private slot to introduce a factory method or global function.</td> | |
146 | </tr><tr> | |
147 | <td><a href="#Refactoring.__introduceParameter">__introduceParameter</a></td> | |
148 | <td>Private slot to introduce a parameter in a function.</td> | |
149 | </tr><tr> | |
150 | <td><a href="#Refactoring.__methodToMethodObject">__methodToMethodObject</a></td> | |
151 | <td>Private slot to change the signature of a method or function.</td> | |
152 | </tr><tr> | |
153 | <td><a href="#Refactoring.__moveMethod">__moveMethod</a></td> | |
154 | <td>Private slot to handle the Move Method action.</td> | |
155 | </tr><tr> | |
156 | <td><a href="#Refactoring.__moveModule">__moveModule</a></td> | |
157 | <td>Private slot to handle the Move Current Module action.</td> | |
158 | </tr><tr> | |
159 | <td><a href="#Refactoring.__performSOA">__performSOA</a></td> | |
160 | <td>Private slot to perform SOA on all modules.</td> | |
161 | </tr><tr> | |
162 | <td><a href="#Refactoring.__queryDefinition">__queryDefinition</a></td> | |
55
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
163 | <td>Private slot to handle the Find Definition action.</td> |
17 | 164 | </tr><tr> |
165 | <td><a href="#Refactoring.__queryImplementations">__queryImplementations</a></td> | |
166 | <td>Private slot to handle the Find Implementations action.</td> | |
167 | </tr><tr> | |
168 | <td><a href="#Refactoring.__queryReferences">__queryReferences</a></td> | |
169 | <td>Private slot to handle the Find References action.</td> | |
170 | </tr><tr> | |
171 | <td><a href="#Refactoring.__redo">__redo</a></td> | |
172 | <td>Private slot to redo the last refactoring.</td> | |
173 | </tr><tr> | |
174 | <td><a href="#Refactoring.__rename">__rename</a></td> | |
175 | <td>Private slot to handle the Rename action.</td> | |
176 | </tr><tr> | |
177 | <td><a href="#Refactoring.__renameLocal">__renameLocal</a></td> | |
178 | <td>Private slot to handle the Local Rename action.</td> | |
179 | </tr><tr> | |
180 | <td><a href="#Refactoring.__renameModule">__renameModule</a></td> | |
181 | <td>Private slot to handle the Rename Current Module action.</td> | |
182 | </tr><tr> | |
183 | <td><a href="#Refactoring.__restructure">__restructure</a></td> | |
184 | <td>Private slot to restructure code.</td> | |
185 | </tr><tr> | |
186 | <td><a href="#Refactoring.__ropeConfigFile">__ropeConfigFile</a></td> | |
187 | <td>Private method to get the name of the rope configuration file.</td> | |
188 | </tr><tr> | |
189 | <td><a href="#Refactoring.__ropeInfo">__ropeInfo</a></td> | |
190 | <td>Private slot to show some info about rope.</td> | |
191 | </tr><tr> | |
192 | <td><a href="#Refactoring.__showFileRedoHistory">__showFileRedoHistory</a></td> | |
193 | <td>Private method to show list of changes related to the current file available for a redo operation.</td> | |
194 | </tr><tr> | |
195 | <td><a href="#Refactoring.__showFileUndoHistory">__showFileUndoHistory</a></td> | |
196 | <td>Private method to show list of changes related to the current file available for an undo operation.</td> | |
197 | </tr><tr> | |
198 | <td><a href="#Refactoring.__showProjectRedoHistory">__showProjectRedoHistory</a></td> | |
199 | <td>Private method to show list of changes available for a redo operation.</td> | |
200 | </tr><tr> | |
201 | <td><a href="#Refactoring.__showProjectUndoHistory">__showProjectUndoHistory</a></td> | |
202 | <td>Private method to show list of changes available for an undo operation.</td> | |
203 | </tr><tr> | |
204 | <td><a href="#Refactoring.__showRefactoringHistoryMenu">__showRefactoringHistoryMenu</a></td> | |
205 | <td>Private slot called before the refactoring history menu is shown.</td> | |
206 | </tr><tr> | |
207 | <td><a href="#Refactoring.__showRefactoringMenu">__showRefactoringMenu</a></td> | |
208 | <td>Private slot called before the refactoring menu is shown.</td> | |
209 | </tr><tr> | |
210 | <td><a href="#Refactoring.__showRopeHelp">__showRopeHelp</a></td> | |
211 | <td>Private slot to show help about the refactorings offered by Rope.</td> | |
212 | </tr><tr> | |
213 | <td><a href="#Refactoring.__transformModuleToPackage">__transformModuleToPackage</a></td> | |
214 | <td>Private slot to transform a module to a package.</td> | |
215 | </tr><tr> | |
216 | <td><a href="#Refactoring.__undo">__undo</a></td> | |
217 | <td>Private slot to undo the last refactoring.</td> | |
218 | </tr><tr> | |
219 | <td><a href="#Refactoring.__updateConfig">__updateConfig</a></td> | |
220 | <td>Private slot to update the configuration file.</td> | |
221 | </tr><tr> | |
222 | <td><a href="#Refactoring.__useFunction">__useFunction</a></td> | |
223 | <td>Private slot to use a function wherever possible.</td> | |
224 | </tr><tr> | |
225 | <td><a href="#Refactoring.confirmAllBuffersSaved">confirmAllBuffersSaved</a></td> | |
87
1fbf5fdbe721
Ported to PyQt5 and eric6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
55
diff
changeset
|
226 | <td>Public method to check, if any editor has unsaved changes.</td> |
17 | 227 | </tr><tr> |
228 | <td><a href="#Refactoring.confirmBufferIsSaved">confirmBufferIsSaved</a></td> | |
229 | <td>Public method to check, if an editor has unsaved changes.</td> | |
230 | </tr><tr> | |
231 | <td><a href="#Refactoring.getActions">getActions</a></td> | |
232 | <td>Public method to get a list of all actions.</td> | |
233 | </tr><tr> | |
234 | <td><a href="#Refactoring.getProject">getProject</a></td> | |
235 | <td>Public method to get a reference to the rope project object.</td> | |
236 | </tr><tr> | |
237 | <td><a href="#Refactoring.handleRopeError">handleRopeError</a></td> | |
238 | <td>Public slot to handle a rope error.</td> | |
239 | </tr><tr> | |
240 | <td><a href="#Refactoring.initActions">initActions</a></td> | |
241 | <td>Public method to define the refactoring actions.</td> | |
242 | </tr><tr> | |
243 | <td><a href="#Refactoring.initMenu">initMenu</a></td> | |
244 | <td>Public slot to initialize the refactoring menu.</td> | |
245 | </tr><tr> | |
246 | <td><a href="#Refactoring.projectClosed">projectClosed</a></td> | |
247 | <td>Public slot to handle the projectClosed signal.</td> | |
248 | </tr><tr> | |
249 | <td><a href="#Refactoring.projectOpened">projectOpened</a></td> | |
250 | <td>Public slot to handle the projectOpened signal.</td> | |
251 | </tr><tr> | |
252 | <td><a href="#Refactoring.refreshEditors">refreshEditors</a></td> | |
253 | <td>Public method to refresh modified editors.</td> | |
107
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
254 | </tr><tr> |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
255 | <td><a href="#Refactoring.reportChanged">reportChanged</a></td> |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
256 | <td>Public slot to report some changed sources.</td> |
17 | 257 | </tr> |
258 | </table> | |
44
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
259 | <h3>Static Methods</h3> |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
260 | <table> |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
261 | <tr><td>None</td></tr> |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
262 | </table> |
17 | 263 | <a NAME="Refactoring.__init__" ID="Refactoring.__init__"></a> |
264 | <h4>Refactoring (Constructor)</h4> | |
31
0389d4a924cc
Dropped support for eric 5.0.x.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
24
diff
changeset
|
265 | <b>Refactoring</b>(<i>plugin, parent=None</i>) |
17 | 266 | <p> |
267 | Constructor | |
268 | </p><dl> | |
269 | <dt><i>plugin</i></dt> | |
270 | <dd> | |
271 | reference to the plugin object | |
272 | </dd><dt><i>parent</i></dt> | |
273 | <dd> | |
274 | parent (QObject) | |
275 | </dd> | |
276 | </dl><a NAME="Refactoring.__canRedo" ID="Refactoring.__canRedo"></a> | |
277 | <h4>Refactoring.__canRedo</h4> | |
278 | <b>__canRedo</b>(<i></i>) | |
279 | <p> | |
280 | Private slot to check, if there are changes to be redone. | |
281 | </p><dl> | |
282 | <dt>Returns:</dt> | |
283 | <dd> | |
284 | flag indicating, that redoable changes are available (boolean) | |
285 | </dd> | |
286 | </dl><a NAME="Refactoring.__canRedoFile" ID="Refactoring.__canRedoFile"></a> | |
287 | <h4>Refactoring.__canRedoFile</h4> | |
288 | <b>__canRedoFile</b>(<i>resource</i>) | |
289 | <p> | |
290 | Private slot to check, if there are redoable changes for a resource. | |
291 | </p><dl> | |
292 | <dt><i>resource</i></dt> | |
293 | <dd> | |
294 | file resource to check against | |
295 | (rope.base.resources.File) | |
296 | </dd> | |
297 | </dl><dl> | |
298 | <dt>Returns:</dt> | |
299 | <dd> | |
300 | flag indicating, that redoable changes are available (boolean) | |
301 | </dd> | |
302 | </dl><a NAME="Refactoring.__canUndo" ID="Refactoring.__canUndo"></a> | |
303 | <h4>Refactoring.__canUndo</h4> | |
304 | <b>__canUndo</b>(<i></i>) | |
305 | <p> | |
306 | Private slot to check, if there are changes to be undone. | |
307 | </p><dl> | |
308 | <dt>Returns:</dt> | |
309 | <dd> | |
310 | flag indicating, that undoable changes are available (boolean) | |
311 | </dd> | |
312 | </dl><a NAME="Refactoring.__canUndoFile" ID="Refactoring.__canUndoFile"></a> | |
313 | <h4>Refactoring.__canUndoFile</h4> | |
314 | <b>__canUndoFile</b>(<i>resource</i>) | |
315 | <p> | |
316 | Private slot to check, if there are undoable changes for a resource. | |
317 | </p><dl> | |
318 | <dt><i>resource</i></dt> | |
319 | <dd> | |
320 | file resource to check against | |
321 | (rope.base.resources.File) | |
322 | </dd> | |
323 | </dl><dl> | |
324 | <dt>Returns:</dt> | |
325 | <dd> | |
326 | flag indicating, that undoable changes are available (boolean) | |
327 | </dd> | |
328 | </dl><a NAME="Refactoring.__changeOccurrences" ID="Refactoring.__changeOccurrences"></a> | |
329 | <h4>Refactoring.__changeOccurrences</h4> | |
330 | <b>__changeOccurrences</b>(<i></i>) | |
331 | <p> | |
332 | Private slot to perform the Change Occurrences refactoring. | |
333 | </p><a NAME="Refactoring.__changeSignature" ID="Refactoring.__changeSignature"></a> | |
334 | <h4>Refactoring.__changeSignature</h4> | |
335 | <b>__changeSignature</b>(<i></i>) | |
336 | <p> | |
337 | Private slot to change the signature of a method or function. | |
338 | </p><a NAME="Refactoring.__clearHistory" ID="Refactoring.__clearHistory"></a> | |
339 | <h4>Refactoring.__clearHistory</h4> | |
340 | <b>__clearHistory</b>(<i></i>) | |
341 | <p> | |
342 | Private slot to clear the redo and undo lists. | |
343 | </p><a NAME="Refactoring.__configChanged" ID="Refactoring.__configChanged"></a> | |
344 | <h4>Refactoring.__configChanged</h4> | |
345 | <b>__configChanged</b>(<i></i>) | |
346 | <p> | |
347 | Private slot called, when the rope config file has changed. | |
348 | </p><a NAME="Refactoring.__convertLocalToAttribute" ID="Refactoring.__convertLocalToAttribute"></a> | |
349 | <h4>Refactoring.__convertLocalToAttribute</h4> | |
350 | <b>__convertLocalToAttribute</b>(<i></i>) | |
351 | <p> | |
352 | Private slot to convert a local variable to an attribute. | |
353 | </p><a NAME="Refactoring.__defaultConfig" ID="Refactoring.__defaultConfig"></a> | |
354 | <h4>Refactoring.__defaultConfig</h4> | |
355 | <b>__defaultConfig</b>(<i></i>) | |
356 | <p> | |
357 | Private slot to return the contents of rope's default configuration. | |
358 | </p><dl> | |
359 | <dt>Returns:</dt> | |
360 | <dd> | |
361 | string containing the source of rope's default | |
362 | configuration (string) | |
363 | </dd> | |
364 | </dl><a NAME="Refactoring.__doExtract" ID="Refactoring.__doExtract"></a> | |
365 | <h4>Refactoring.__doExtract</h4> | |
366 | <b>__doExtract</b>(<i>title, kind</i>) | |
367 | <p> | |
368 | Private method to perform the extract refactoring. | |
369 | </p><dl> | |
370 | <dt><i>title</i></dt> | |
371 | <dd> | |
372 | title of the refactoring (string) | |
373 | </dd><dt><i>kind</i></dt> | |
374 | <dd> | |
375 | kind of extraction to be done (string, | |
376 | "method" or "variable") | |
377 | </dd> | |
55
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
378 | </dl><dl> |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
379 | <dt>Raises <b>Exception</b>:</dt> |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
380 | <dd> |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
381 | raised to indicate a wrong extraction method |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
382 | </dd> |
17 | 383 | </dl><a NAME="Refactoring.__doImports" ID="Refactoring.__doImports"></a> |
384 | <h4>Refactoring.__doImports</h4> | |
385 | <b>__doImports</b>(<i>title, method</i>) | |
386 | <p> | |
387 | Private method to perform the various imports refactorings. | |
55
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
388 | </p><dl> |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
389 | <dt><i>title</i></dt> |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
390 | <dd> |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
391 | title to be used for the import refactoring (string) |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
392 | </dd><dt><i>method</i></dt> |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
393 | <dd> |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
394 | method performing the import refactoring |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
395 | </dd> |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
396 | </dl><a NAME="Refactoring.__doRename" ID="Refactoring.__doRename"></a> |
17 | 397 | <h4>Refactoring.__doRename</h4> |
398 | <b>__doRename</b>(<i>title, isLocal=False, renameModule=False</i>) | |
399 | <p> | |
400 | Private method to perform the various renaming refactorings. | |
401 | </p><dl> | |
402 | <dt><i>title</i></dt> | |
403 | <dd> | |
404 | title of the refactoring (string) | |
405 | </dd><dt><i>isLocal</i></dt> | |
406 | <dd> | |
407 | flag indicating to restrict refactoring to | |
408 | the local file (boolean) | |
409 | </dd><dt><i>renameModule</i></dt> | |
410 | <dd> | |
411 | flag indicating a module rename refactoring | |
412 | (boolean) | |
413 | </dd> | |
414 | </dl><a NAME="Refactoring.__editConfig" ID="Refactoring.__editConfig"></a> | |
415 | <h4>Refactoring.__editConfig</h4> | |
416 | <b>__editConfig</b>(<i></i>) | |
417 | <p> | |
418 | Private slot to open the rope configuration file in an editor. | |
419 | </p><a NAME="Refactoring.__encapsulateAttribute" ID="Refactoring.__encapsulateAttribute"></a> | |
420 | <h4>Refactoring.__encapsulateAttribute</h4> | |
421 | <b>__encapsulateAttribute</b>(<i></i>) | |
422 | <p> | |
423 | Private slot to encapsulate an attribute. | |
424 | </p><a NAME="Refactoring.__extractLocalVariable" ID="Refactoring.__extractLocalVariable"></a> | |
425 | <h4>Refactoring.__extractLocalVariable</h4> | |
426 | <b>__extractLocalVariable</b>(<i></i>) | |
427 | <p> | |
428 | Private slot to handle the Extract Local Variable action. | |
429 | </p><a NAME="Refactoring.__extractMethod" ID="Refactoring.__extractMethod"></a> | |
430 | <h4>Refactoring.__extractMethod</h4> | |
431 | <b>__extractMethod</b>(<i></i>) | |
432 | <p> | |
433 | Private slot to handle the Extract Method action. | |
434 | </p><a NAME="Refactoring.__getFileRedoList" ID="Refactoring.__getFileRedoList"></a> | |
435 | <h4>Refactoring.__getFileRedoList</h4> | |
436 | <b>__getFileRedoList</b>(<i>resource</i>) | |
437 | <p> | |
438 | Private slot to get a list of redoable changes. | |
439 | </p><dl> | |
440 | <dt><i>resource</i></dt> | |
441 | <dd> | |
442 | file resource to filter against | |
443 | (rope.base.resources.File) | |
444 | </dd> | |
445 | </dl><dl> | |
446 | <dt>Returns:</dt> | |
447 | <dd> | |
448 | list of change objects (list of rope.base.change.Change) | |
449 | </dd> | |
450 | </dl><a NAME="Refactoring.__getFileUndoList" ID="Refactoring.__getFileUndoList"></a> | |
451 | <h4>Refactoring.__getFileUndoList</h4> | |
452 | <b>__getFileUndoList</b>(<i>resource</i>) | |
453 | <p> | |
454 | Private slot to get a list of undoable changes. | |
455 | </p><dl> | |
456 | <dt><i>resource</i></dt> | |
457 | <dd> | |
458 | file resource to filter against | |
459 | (rope.base.resources.File) | |
460 | </dd> | |
461 | </dl><dl> | |
462 | <dt>Returns:</dt> | |
463 | <dd> | |
464 | list of change objects (list of rope.base.change.Change) | |
465 | </dd> | |
44
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
466 | </dl><a NAME="Refactoring.__getOffset" ID="Refactoring.__getOffset"></a> |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
467 | <h4>Refactoring.__getOffset</h4> |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
468 | <b>__getOffset</b>(<i>editor, line, index</i>) |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
469 | <p> |
55
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
470 | Private method to get the offset into the text treating CRLF as ONE |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
471 | character. |
44
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
472 | </p><p> |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
473 | Note: rope seems to convert all EOL styles to just \n. |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
474 | </p><dl> |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
475 | <dt><i>editor</i></dt> |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
476 | <dd> |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
477 | reference to the editor (Editor) |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
478 | </dd><dt><i>line</i></dt> |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
479 | <dd> |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
480 | line for the offset (integer) |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
481 | </dd><dt><i>index</i></dt> |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
482 | <dd> |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
483 | index into line for the offset (integer) |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
484 | </dd> |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
485 | </dl><dl> |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
486 | <dt>Returns:</dt> |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
487 | <dd> |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
488 | rope compliant offset into the file (integer) |
8aa985c8dee5
Fixed an issue causing failures for files with Windows end-of-line indicators.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
31
diff
changeset
|
489 | </dd> |
17 | 490 | </dl><a NAME="Refactoring.__importsExpandStar" ID="Refactoring.__importsExpandStar"></a> |
491 | <h4>Refactoring.__importsExpandStar</h4> | |
492 | <b>__importsExpandStar</b>(<i></i>) | |
493 | <p> | |
494 | Private slot to expand star imports. | |
495 | </p><a NAME="Refactoring.__importsFromToImport" ID="Refactoring.__importsFromToImport"></a> | |
496 | <h4>Refactoring.__importsFromToImport</h4> | |
497 | <b>__importsFromToImport</b>(<i></i>) | |
498 | <p> | |
499 | Private slot to transform from imports to plain imports. | |
500 | </p><a NAME="Refactoring.__importsHandleLong" ID="Refactoring.__importsHandleLong"></a> | |
501 | <h4>Refactoring.__importsHandleLong</h4> | |
502 | <b>__importsHandleLong</b>(<i></i>) | |
503 | <p> | |
504 | Private slot to handle long imports. | |
505 | </p><a NAME="Refactoring.__importsOrganize" ID="Refactoring.__importsOrganize"></a> | |
506 | <h4>Refactoring.__importsOrganize</h4> | |
507 | <b>__importsOrganize</b>(<i></i>) | |
508 | <p> | |
509 | Private slot to organize imports. | |
510 | </p><a NAME="Refactoring.__importsRelativeToAbsolute" ID="Refactoring.__importsRelativeToAbsolute"></a> | |
511 | <h4>Refactoring.__importsRelativeToAbsolute</h4> | |
512 | <b>__importsRelativeToAbsolute</b>(<i></i>) | |
513 | <p> | |
514 | Private slot to transform relative to absolute imports. | |
515 | </p><a NAME="Refactoring.__inline" ID="Refactoring.__inline"></a> | |
516 | <h4>Refactoring.__inline</h4> | |
517 | <b>__inline</b>(<i></i>) | |
518 | <p> | |
519 | Private slot to handle the Inline Local Variable action. | |
520 | </p><a NAME="Refactoring.__inlineArgumentDefault" ID="Refactoring.__inlineArgumentDefault"></a> | |
521 | <h4>Refactoring.__inlineArgumentDefault</h4> | |
522 | <b>__inlineArgumentDefault</b>(<i></i>) | |
523 | <p> | |
524 | Private slot to inline the default value of a parameter of a | |
525 | method or function. | |
526 | </p><a NAME="Refactoring.__introduceFactoryMethod" ID="Refactoring.__introduceFactoryMethod"></a> | |
527 | <h4>Refactoring.__introduceFactoryMethod</h4> | |
528 | <b>__introduceFactoryMethod</b>(<i></i>) | |
529 | <p> | |
530 | Private slot to introduce a factory method or global function. | |
531 | </p><a NAME="Refactoring.__introduceParameter" ID="Refactoring.__introduceParameter"></a> | |
532 | <h4>Refactoring.__introduceParameter</h4> | |
533 | <b>__introduceParameter</b>(<i></i>) | |
534 | <p> | |
535 | Private slot to introduce a parameter in a function. | |
536 | </p><a NAME="Refactoring.__methodToMethodObject" ID="Refactoring.__methodToMethodObject"></a> | |
537 | <h4>Refactoring.__methodToMethodObject</h4> | |
538 | <b>__methodToMethodObject</b>(<i></i>) | |
539 | <p> | |
540 | Private slot to change the signature of a method or function. | |
541 | </p><a NAME="Refactoring.__moveMethod" ID="Refactoring.__moveMethod"></a> | |
542 | <h4>Refactoring.__moveMethod</h4> | |
543 | <b>__moveMethod</b>(<i></i>) | |
544 | <p> | |
545 | Private slot to handle the Move Method action. | |
546 | </p><a NAME="Refactoring.__moveModule" ID="Refactoring.__moveModule"></a> | |
547 | <h4>Refactoring.__moveModule</h4> | |
548 | <b>__moveModule</b>(<i></i>) | |
549 | <p> | |
550 | Private slot to handle the Move Current Module action. | |
551 | </p><a NAME="Refactoring.__performSOA" ID="Refactoring.__performSOA"></a> | |
552 | <h4>Refactoring.__performSOA</h4> | |
553 | <b>__performSOA</b>(<i></i>) | |
554 | <p> | |
555 | Private slot to perform SOA on all modules. | |
556 | </p><a NAME="Refactoring.__queryDefinition" ID="Refactoring.__queryDefinition"></a> | |
557 | <h4>Refactoring.__queryDefinition</h4> | |
558 | <b>__queryDefinition</b>(<i></i>) | |
559 | <p> | |
55
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
560 | Private slot to handle the Find Definition action. |
17 | 561 | </p><a NAME="Refactoring.__queryImplementations" ID="Refactoring.__queryImplementations"></a> |
562 | <h4>Refactoring.__queryImplementations</h4> | |
563 | <b>__queryImplementations</b>(<i></i>) | |
564 | <p> | |
565 | Private slot to handle the Find Implementations action. | |
566 | </p><a NAME="Refactoring.__queryReferences" ID="Refactoring.__queryReferences"></a> | |
567 | <h4>Refactoring.__queryReferences</h4> | |
568 | <b>__queryReferences</b>(<i></i>) | |
569 | <p> | |
570 | Private slot to handle the Find References action. | |
571 | </p><a NAME="Refactoring.__redo" ID="Refactoring.__redo"></a> | |
572 | <h4>Refactoring.__redo</h4> | |
573 | <b>__redo</b>(<i></i>) | |
574 | <p> | |
575 | Private slot to redo the last refactoring. | |
576 | </p><a NAME="Refactoring.__rename" ID="Refactoring.__rename"></a> | |
577 | <h4>Refactoring.__rename</h4> | |
578 | <b>__rename</b>(<i></i>) | |
579 | <p> | |
580 | Private slot to handle the Rename action. | |
581 | </p><a NAME="Refactoring.__renameLocal" ID="Refactoring.__renameLocal"></a> | |
582 | <h4>Refactoring.__renameLocal</h4> | |
583 | <b>__renameLocal</b>(<i></i>) | |
584 | <p> | |
585 | Private slot to handle the Local Rename action. | |
586 | </p><a NAME="Refactoring.__renameModule" ID="Refactoring.__renameModule"></a> | |
587 | <h4>Refactoring.__renameModule</h4> | |
588 | <b>__renameModule</b>(<i></i>) | |
589 | <p> | |
590 | Private slot to handle the Rename Current Module action. | |
591 | </p><a NAME="Refactoring.__restructure" ID="Refactoring.__restructure"></a> | |
592 | <h4>Refactoring.__restructure</h4> | |
593 | <b>__restructure</b>(<i></i>) | |
594 | <p> | |
595 | Private slot to restructure code. | |
596 | </p><a NAME="Refactoring.__ropeConfigFile" ID="Refactoring.__ropeConfigFile"></a> | |
597 | <h4>Refactoring.__ropeConfigFile</h4> | |
598 | <b>__ropeConfigFile</b>(<i></i>) | |
599 | <p> | |
600 | Private method to get the name of the rope configuration file. | |
601 | </p><dl> | |
602 | <dt>Returns:</dt> | |
603 | <dd> | |
604 | name of the rope configuration file (string) | |
605 | </dd> | |
606 | </dl><a NAME="Refactoring.__ropeInfo" ID="Refactoring.__ropeInfo"></a> | |
607 | <h4>Refactoring.__ropeInfo</h4> | |
608 | <b>__ropeInfo</b>(<i></i>) | |
609 | <p> | |
610 | Private slot to show some info about rope. | |
611 | </p><a NAME="Refactoring.__showFileRedoHistory" ID="Refactoring.__showFileRedoHistory"></a> | |
612 | <h4>Refactoring.__showFileRedoHistory</h4> | |
613 | <b>__showFileRedoHistory</b>(<i></i>) | |
614 | <p> | |
24
e18b36080a37
Updated source docu after making the code PEP-8 compliant.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
17
diff
changeset
|
615 | Private method to show list of changes related to the current file |
17 | 616 | available for a redo operation. |
617 | </p><a NAME="Refactoring.__showFileUndoHistory" ID="Refactoring.__showFileUndoHistory"></a> | |
618 | <h4>Refactoring.__showFileUndoHistory</h4> | |
619 | <b>__showFileUndoHistory</b>(<i></i>) | |
620 | <p> | |
24
e18b36080a37
Updated source docu after making the code PEP-8 compliant.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
17
diff
changeset
|
621 | Private method to show list of changes related to the current file |
17 | 622 | available for an undo operation. |
623 | </p><a NAME="Refactoring.__showProjectRedoHistory" ID="Refactoring.__showProjectRedoHistory"></a> | |
624 | <h4>Refactoring.__showProjectRedoHistory</h4> | |
625 | <b>__showProjectRedoHistory</b>(<i></i>) | |
626 | <p> | |
627 | Private method to show list of changes available for a redo operation. | |
628 | </p><a NAME="Refactoring.__showProjectUndoHistory" ID="Refactoring.__showProjectUndoHistory"></a> | |
629 | <h4>Refactoring.__showProjectUndoHistory</h4> | |
630 | <b>__showProjectUndoHistory</b>(<i></i>) | |
631 | <p> | |
632 | Private method to show list of changes available for an undo operation. | |
633 | </p><a NAME="Refactoring.__showRefactoringHistoryMenu" ID="Refactoring.__showRefactoringHistoryMenu"></a> | |
634 | <h4>Refactoring.__showRefactoringHistoryMenu</h4> | |
635 | <b>__showRefactoringHistoryMenu</b>(<i></i>) | |
636 | <p> | |
637 | Private slot called before the refactoring history menu is shown. | |
638 | </p><a NAME="Refactoring.__showRefactoringMenu" ID="Refactoring.__showRefactoringMenu"></a> | |
639 | <h4>Refactoring.__showRefactoringMenu</h4> | |
640 | <b>__showRefactoringMenu</b>(<i></i>) | |
641 | <p> | |
642 | Private slot called before the refactoring menu is shown. | |
643 | </p><a NAME="Refactoring.__showRopeHelp" ID="Refactoring.__showRopeHelp"></a> | |
644 | <h4>Refactoring.__showRopeHelp</h4> | |
645 | <b>__showRopeHelp</b>(<i></i>) | |
646 | <p> | |
647 | Private slot to show help about the refactorings offered by Rope. | |
648 | </p><a NAME="Refactoring.__transformModuleToPackage" ID="Refactoring.__transformModuleToPackage"></a> | |
649 | <h4>Refactoring.__transformModuleToPackage</h4> | |
650 | <b>__transformModuleToPackage</b>(<i></i>) | |
651 | <p> | |
652 | Private slot to transform a module to a package. | |
653 | </p><a NAME="Refactoring.__undo" ID="Refactoring.__undo"></a> | |
654 | <h4>Refactoring.__undo</h4> | |
655 | <b>__undo</b>(<i></i>) | |
656 | <p> | |
657 | Private slot to undo the last refactoring. | |
658 | </p><a NAME="Refactoring.__updateConfig" ID="Refactoring.__updateConfig"></a> | |
659 | <h4>Refactoring.__updateConfig</h4> | |
660 | <b>__updateConfig</b>(<i></i>) | |
661 | <p> | |
662 | Private slot to update the configuration file. | |
663 | </p><a NAME="Refactoring.__useFunction" ID="Refactoring.__useFunction"></a> | |
664 | <h4>Refactoring.__useFunction</h4> | |
665 | <b>__useFunction</b>(<i></i>) | |
666 | <p> | |
667 | Private slot to use a function wherever possible. | |
668 | </p><a NAME="Refactoring.confirmAllBuffersSaved" ID="Refactoring.confirmAllBuffersSaved"></a> | |
669 | <h4>Refactoring.confirmAllBuffersSaved</h4> | |
670 | <b>confirmAllBuffersSaved</b>(<i></i>) | |
671 | <p> | |
87
1fbf5fdbe721
Ported to PyQt5 and eric6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
55
diff
changeset
|
672 | Public method to check, if any editor has unsaved changes. |
17 | 673 | </p><dl> |
674 | <dt>Returns:</dt> | |
675 | <dd> | |
676 | flag indicating, that no editor contains unsaved edits | |
677 | (boolean) | |
678 | </dd> | |
679 | </dl><a NAME="Refactoring.confirmBufferIsSaved" ID="Refactoring.confirmBufferIsSaved"></a> | |
680 | <h4>Refactoring.confirmBufferIsSaved</h4> | |
681 | <b>confirmBufferIsSaved</b>(<i>editor</i>) | |
682 | <p> | |
683 | Public method to check, if an editor has unsaved changes. | |
684 | </p><dl> | |
685 | <dt><i>editor</i></dt> | |
686 | <dd> | |
687 | reference to the editor to be checked | |
688 | </dd> | |
689 | </dl><dl> | |
690 | <dt>Returns:</dt> | |
691 | <dd> | |
692 | flag indicating, that the editor doesn't contain | |
693 | unsaved edits (boolean) | |
694 | </dd> | |
695 | </dl><a NAME="Refactoring.getActions" ID="Refactoring.getActions"></a> | |
696 | <h4>Refactoring.getActions</h4> | |
697 | <b>getActions</b>(<i></i>) | |
698 | <p> | |
699 | Public method to get a list of all actions. | |
700 | </p><dl> | |
701 | <dt>Returns:</dt> | |
702 | <dd> | |
703 | list of all actions (list of E5Action) | |
704 | </dd> | |
705 | </dl><a NAME="Refactoring.getProject" ID="Refactoring.getProject"></a> | |
706 | <h4>Refactoring.getProject</h4> | |
707 | <b>getProject</b>(<i></i>) | |
708 | <p> | |
709 | Public method to get a reference to the rope project object. | |
710 | </p><dl> | |
711 | <dt>Returns:</dt> | |
712 | <dd> | |
713 | reference to the rope project object (RopeProject) | |
714 | </dd> | |
715 | </dl><a NAME="Refactoring.handleRopeError" ID="Refactoring.handleRopeError"></a> | |
716 | <h4>Refactoring.handleRopeError</h4> | |
717 | <b>handleRopeError</b>(<i>err, title, handle=None</i>) | |
718 | <p> | |
719 | Public slot to handle a rope error. | |
720 | </p><dl> | |
721 | <dt><i>err</i></dt> | |
722 | <dd> | |
723 | rope exception object (Exception) | |
724 | </dd><dt><i>title</i></dt> | |
725 | <dd> | |
726 | title to be displayed (string) | |
727 | </dd><dt><i>handle</i></dt> | |
728 | <dd> | |
729 | reference to a taskhandle (ProgressHandle) | |
730 | </dd> | |
731 | </dl><a NAME="Refactoring.initActions" ID="Refactoring.initActions"></a> | |
732 | <h4>Refactoring.initActions</h4> | |
733 | <b>initActions</b>(<i></i>) | |
734 | <p> | |
735 | Public method to define the refactoring actions. | |
736 | </p><a NAME="Refactoring.initMenu" ID="Refactoring.initMenu"></a> | |
737 | <h4>Refactoring.initMenu</h4> | |
738 | <b>initMenu</b>(<i></i>) | |
739 | <p> | |
740 | Public slot to initialize the refactoring menu. | |
741 | </p><dl> | |
742 | <dt>Returns:</dt> | |
743 | <dd> | |
744 | the menu generated (QMenu) | |
745 | </dd> | |
746 | </dl><a NAME="Refactoring.projectClosed" ID="Refactoring.projectClosed"></a> | |
747 | <h4>Refactoring.projectClosed</h4> | |
748 | <b>projectClosed</b>(<i></i>) | |
749 | <p> | |
750 | Public slot to handle the projectClosed signal. | |
751 | </p><a NAME="Refactoring.projectOpened" ID="Refactoring.projectOpened"></a> | |
752 | <h4>Refactoring.projectOpened</h4> | |
753 | <b>projectOpened</b>(<i></i>) | |
754 | <p> | |
755 | Public slot to handle the projectOpened signal. | |
756 | </p><a NAME="Refactoring.refreshEditors" ID="Refactoring.refreshEditors"></a> | |
757 | <h4>Refactoring.refreshEditors</h4> | |
758 | <b>refreshEditors</b>(<i>changes</i>) | |
759 | <p> | |
760 | Public method to refresh modified editors. | |
761 | </p><dl> | |
55
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
762 | <dt><i>changes</i></dt> |
17 | 763 | <dd> |
55
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
764 | reference to the ChangeSet object |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
765 | (rope.base.change.ChangeSet) |
17 | 766 | </dd> |
107
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
767 | </dl><a NAME="Refactoring.reportChanged" ID="Refactoring.reportChanged"></a> |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
768 | <h4>Refactoring.reportChanged</h4> |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
769 | <b>reportChanged</b>(<i>filename, oldSource</i>) |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
770 | <p> |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
771 | Public slot to report some changed sources. |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
772 | </p><dl> |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
773 | <dt><i>filename</i></dt> |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
774 | <dd> |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
775 | file name of the changed source (string) |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
776 | </dd><dt><i>oldSource</i></dt> |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
777 | <dd> |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
778 | source code before the change (string) |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
779 | </dd> |
17 | 780 | </dl> |
781 | <div align="right"><a href="#top">Up</a></div> | |
782 | <hr /> | |
783 | </body></html> |