Sat, 27 Jun 2015 11:15:48 +0200
Added capability to go to the definition of a class or function by clicking on it (while holding the Ctrl key or another configurable modifier sequence) (needs eric 6.1.0).
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> | |
129
23ee57a96ea3
Added capability to go to the definition of a class or function by clicking on it (while holding the Ctrl key or another configurable modifier sequence) (needs eric 6.1.0).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
107
diff
changeset
|
237 | <td><a href="#Refactoring.gotoDefinition">gotoDefinition</a></td> |
23ee57a96ea3
Added capability to go to the definition of a class or function by clicking on it (while holding the Ctrl key or another configurable modifier sequence) (needs eric 6.1.0).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
107
diff
changeset
|
238 | <td>Public slot to find the definition for the word at the cursor position and go to it.</td> |
23ee57a96ea3
Added capability to go to the definition of a class or function by clicking on it (while holding the Ctrl key or another configurable modifier sequence) (needs eric 6.1.0).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
107
diff
changeset
|
239 | </tr><tr> |
17 | 240 | <td><a href="#Refactoring.handleRopeError">handleRopeError</a></td> |
241 | <td>Public slot to handle a rope error.</td> | |
242 | </tr><tr> | |
243 | <td><a href="#Refactoring.initActions">initActions</a></td> | |
244 | <td>Public method to define the refactoring actions.</td> | |
245 | </tr><tr> | |
246 | <td><a href="#Refactoring.initMenu">initMenu</a></td> | |
247 | <td>Public slot to initialize the refactoring menu.</td> | |
248 | </tr><tr> | |
249 | <td><a href="#Refactoring.projectClosed">projectClosed</a></td> | |
250 | <td>Public slot to handle the projectClosed signal.</td> | |
251 | </tr><tr> | |
252 | <td><a href="#Refactoring.projectOpened">projectOpened</a></td> | |
253 | <td>Public slot to handle the projectOpened signal.</td> | |
254 | </tr><tr> | |
255 | <td><a href="#Refactoring.refreshEditors">refreshEditors</a></td> | |
256 | <td>Public method to refresh modified editors.</td> | |
107
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
257 | </tr><tr> |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
258 | <td><a href="#Refactoring.reportChanged">reportChanged</a></td> |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
259 | <td>Public slot to report some changed sources.</td> |
17 | 260 | </tr> |
261 | </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
|
262 | <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
|
263 | <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
|
264 | <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
|
265 | </table> |
17 | 266 | <a NAME="Refactoring.__init__" ID="Refactoring.__init__"></a> |
267 | <h4>Refactoring (Constructor)</h4> | |
31
0389d4a924cc
Dropped support for eric 5.0.x.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
24
diff
changeset
|
268 | <b>Refactoring</b>(<i>plugin, parent=None</i>) |
17 | 269 | <p> |
270 | Constructor | |
271 | </p><dl> | |
272 | <dt><i>plugin</i></dt> | |
273 | <dd> | |
274 | reference to the plugin object | |
275 | </dd><dt><i>parent</i></dt> | |
276 | <dd> | |
277 | parent (QObject) | |
278 | </dd> | |
279 | </dl><a NAME="Refactoring.__canRedo" ID="Refactoring.__canRedo"></a> | |
280 | <h4>Refactoring.__canRedo</h4> | |
281 | <b>__canRedo</b>(<i></i>) | |
282 | <p> | |
283 | Private slot to check, if there are changes to be redone. | |
284 | </p><dl> | |
285 | <dt>Returns:</dt> | |
286 | <dd> | |
287 | flag indicating, that redoable changes are available (boolean) | |
288 | </dd> | |
289 | </dl><a NAME="Refactoring.__canRedoFile" ID="Refactoring.__canRedoFile"></a> | |
290 | <h4>Refactoring.__canRedoFile</h4> | |
291 | <b>__canRedoFile</b>(<i>resource</i>) | |
292 | <p> | |
293 | Private slot to check, if there are redoable changes for a resource. | |
294 | </p><dl> | |
295 | <dt><i>resource</i></dt> | |
296 | <dd> | |
297 | file resource to check against | |
298 | (rope.base.resources.File) | |
299 | </dd> | |
300 | </dl><dl> | |
301 | <dt>Returns:</dt> | |
302 | <dd> | |
303 | flag indicating, that redoable changes are available (boolean) | |
304 | </dd> | |
305 | </dl><a NAME="Refactoring.__canUndo" ID="Refactoring.__canUndo"></a> | |
306 | <h4>Refactoring.__canUndo</h4> | |
307 | <b>__canUndo</b>(<i></i>) | |
308 | <p> | |
309 | Private slot to check, if there are changes to be undone. | |
310 | </p><dl> | |
311 | <dt>Returns:</dt> | |
312 | <dd> | |
313 | flag indicating, that undoable changes are available (boolean) | |
314 | </dd> | |
315 | </dl><a NAME="Refactoring.__canUndoFile" ID="Refactoring.__canUndoFile"></a> | |
316 | <h4>Refactoring.__canUndoFile</h4> | |
317 | <b>__canUndoFile</b>(<i>resource</i>) | |
318 | <p> | |
319 | Private slot to check, if there are undoable changes for a resource. | |
320 | </p><dl> | |
321 | <dt><i>resource</i></dt> | |
322 | <dd> | |
323 | file resource to check against | |
324 | (rope.base.resources.File) | |
325 | </dd> | |
326 | </dl><dl> | |
327 | <dt>Returns:</dt> | |
328 | <dd> | |
329 | flag indicating, that undoable changes are available (boolean) | |
330 | </dd> | |
331 | </dl><a NAME="Refactoring.__changeOccurrences" ID="Refactoring.__changeOccurrences"></a> | |
332 | <h4>Refactoring.__changeOccurrences</h4> | |
333 | <b>__changeOccurrences</b>(<i></i>) | |
334 | <p> | |
335 | Private slot to perform the Change Occurrences refactoring. | |
336 | </p><a NAME="Refactoring.__changeSignature" ID="Refactoring.__changeSignature"></a> | |
337 | <h4>Refactoring.__changeSignature</h4> | |
338 | <b>__changeSignature</b>(<i></i>) | |
339 | <p> | |
340 | Private slot to change the signature of a method or function. | |
341 | </p><a NAME="Refactoring.__clearHistory" ID="Refactoring.__clearHistory"></a> | |
342 | <h4>Refactoring.__clearHistory</h4> | |
343 | <b>__clearHistory</b>(<i></i>) | |
344 | <p> | |
345 | Private slot to clear the redo and undo lists. | |
346 | </p><a NAME="Refactoring.__configChanged" ID="Refactoring.__configChanged"></a> | |
347 | <h4>Refactoring.__configChanged</h4> | |
348 | <b>__configChanged</b>(<i></i>) | |
349 | <p> | |
350 | Private slot called, when the rope config file has changed. | |
351 | </p><a NAME="Refactoring.__convertLocalToAttribute" ID="Refactoring.__convertLocalToAttribute"></a> | |
352 | <h4>Refactoring.__convertLocalToAttribute</h4> | |
353 | <b>__convertLocalToAttribute</b>(<i></i>) | |
354 | <p> | |
355 | Private slot to convert a local variable to an attribute. | |
356 | </p><a NAME="Refactoring.__defaultConfig" ID="Refactoring.__defaultConfig"></a> | |
357 | <h4>Refactoring.__defaultConfig</h4> | |
358 | <b>__defaultConfig</b>(<i></i>) | |
359 | <p> | |
360 | Private slot to return the contents of rope's default configuration. | |
361 | </p><dl> | |
362 | <dt>Returns:</dt> | |
363 | <dd> | |
364 | string containing the source of rope's default | |
365 | configuration (string) | |
366 | </dd> | |
367 | </dl><a NAME="Refactoring.__doExtract" ID="Refactoring.__doExtract"></a> | |
368 | <h4>Refactoring.__doExtract</h4> | |
369 | <b>__doExtract</b>(<i>title, kind</i>) | |
370 | <p> | |
371 | Private method to perform the extract refactoring. | |
372 | </p><dl> | |
373 | <dt><i>title</i></dt> | |
374 | <dd> | |
375 | title of the refactoring (string) | |
376 | </dd><dt><i>kind</i></dt> | |
377 | <dd> | |
378 | kind of extraction to be done (string, | |
379 | "method" or "variable") | |
380 | </dd> | |
55
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
381 | </dl><dl> |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
382 | <dt>Raises <b>Exception</b>:</dt> |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
383 | <dd> |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
384 | raised to indicate a wrong extraction method |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
385 | </dd> |
17 | 386 | </dl><a NAME="Refactoring.__doImports" ID="Refactoring.__doImports"></a> |
387 | <h4>Refactoring.__doImports</h4> | |
388 | <b>__doImports</b>(<i>title, method</i>) | |
389 | <p> | |
390 | Private method to perform the various imports refactorings. | |
55
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
391 | </p><dl> |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
392 | <dt><i>title</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 | title to be used for the import refactoring (string) |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
395 | </dd><dt><i>method</i></dt> |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
396 | <dd> |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
397 | method performing the import refactoring |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
398 | </dd> |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
399 | </dl><a NAME="Refactoring.__doRename" ID="Refactoring.__doRename"></a> |
17 | 400 | <h4>Refactoring.__doRename</h4> |
401 | <b>__doRename</b>(<i>title, isLocal=False, renameModule=False</i>) | |
402 | <p> | |
403 | Private method to perform the various renaming refactorings. | |
404 | </p><dl> | |
405 | <dt><i>title</i></dt> | |
406 | <dd> | |
407 | title of the refactoring (string) | |
408 | </dd><dt><i>isLocal</i></dt> | |
409 | <dd> | |
410 | flag indicating to restrict refactoring to | |
411 | the local file (boolean) | |
412 | </dd><dt><i>renameModule</i></dt> | |
413 | <dd> | |
414 | flag indicating a module rename refactoring | |
415 | (boolean) | |
416 | </dd> | |
417 | </dl><a NAME="Refactoring.__editConfig" ID="Refactoring.__editConfig"></a> | |
418 | <h4>Refactoring.__editConfig</h4> | |
419 | <b>__editConfig</b>(<i></i>) | |
420 | <p> | |
421 | Private slot to open the rope configuration file in an editor. | |
422 | </p><a NAME="Refactoring.__encapsulateAttribute" ID="Refactoring.__encapsulateAttribute"></a> | |
423 | <h4>Refactoring.__encapsulateAttribute</h4> | |
424 | <b>__encapsulateAttribute</b>(<i></i>) | |
425 | <p> | |
426 | Private slot to encapsulate an attribute. | |
427 | </p><a NAME="Refactoring.__extractLocalVariable" ID="Refactoring.__extractLocalVariable"></a> | |
428 | <h4>Refactoring.__extractLocalVariable</h4> | |
429 | <b>__extractLocalVariable</b>(<i></i>) | |
430 | <p> | |
431 | Private slot to handle the Extract Local Variable action. | |
432 | </p><a NAME="Refactoring.__extractMethod" ID="Refactoring.__extractMethod"></a> | |
433 | <h4>Refactoring.__extractMethod</h4> | |
434 | <b>__extractMethod</b>(<i></i>) | |
435 | <p> | |
436 | Private slot to handle the Extract Method action. | |
437 | </p><a NAME="Refactoring.__getFileRedoList" ID="Refactoring.__getFileRedoList"></a> | |
438 | <h4>Refactoring.__getFileRedoList</h4> | |
439 | <b>__getFileRedoList</b>(<i>resource</i>) | |
440 | <p> | |
441 | Private slot to get a list of redoable changes. | |
442 | </p><dl> | |
443 | <dt><i>resource</i></dt> | |
444 | <dd> | |
445 | file resource to filter against | |
446 | (rope.base.resources.File) | |
447 | </dd> | |
448 | </dl><dl> | |
449 | <dt>Returns:</dt> | |
450 | <dd> | |
451 | list of change objects (list of rope.base.change.Change) | |
452 | </dd> | |
453 | </dl><a NAME="Refactoring.__getFileUndoList" ID="Refactoring.__getFileUndoList"></a> | |
454 | <h4>Refactoring.__getFileUndoList</h4> | |
455 | <b>__getFileUndoList</b>(<i>resource</i>) | |
456 | <p> | |
457 | Private slot to get a list of undoable changes. | |
458 | </p><dl> | |
459 | <dt><i>resource</i></dt> | |
460 | <dd> | |
461 | file resource to filter against | |
462 | (rope.base.resources.File) | |
463 | </dd> | |
464 | </dl><dl> | |
465 | <dt>Returns:</dt> | |
466 | <dd> | |
467 | list of change objects (list of rope.base.change.Change) | |
468 | </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
|
469 | </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
|
470 | <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
|
471 | <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
|
472 | <p> |
55
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
473 | 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
|
474 | 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
|
475 | </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
|
476 | 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
|
477 | </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
|
478 | <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
|
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 | 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
|
481 | </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
|
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 | 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><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
|
485 | <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
|
486 | 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
|
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 | </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
|
489 | <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
|
490 | <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
|
491 | 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
|
492 | </dd> |
17 | 493 | </dl><a NAME="Refactoring.__importsExpandStar" ID="Refactoring.__importsExpandStar"></a> |
494 | <h4>Refactoring.__importsExpandStar</h4> | |
495 | <b>__importsExpandStar</b>(<i></i>) | |
496 | <p> | |
497 | Private slot to expand star imports. | |
498 | </p><a NAME="Refactoring.__importsFromToImport" ID="Refactoring.__importsFromToImport"></a> | |
499 | <h4>Refactoring.__importsFromToImport</h4> | |
500 | <b>__importsFromToImport</b>(<i></i>) | |
501 | <p> | |
502 | Private slot to transform from imports to plain imports. | |
503 | </p><a NAME="Refactoring.__importsHandleLong" ID="Refactoring.__importsHandleLong"></a> | |
504 | <h4>Refactoring.__importsHandleLong</h4> | |
505 | <b>__importsHandleLong</b>(<i></i>) | |
506 | <p> | |
507 | Private slot to handle long imports. | |
508 | </p><a NAME="Refactoring.__importsOrganize" ID="Refactoring.__importsOrganize"></a> | |
509 | <h4>Refactoring.__importsOrganize</h4> | |
510 | <b>__importsOrganize</b>(<i></i>) | |
511 | <p> | |
512 | Private slot to organize imports. | |
513 | </p><a NAME="Refactoring.__importsRelativeToAbsolute" ID="Refactoring.__importsRelativeToAbsolute"></a> | |
514 | <h4>Refactoring.__importsRelativeToAbsolute</h4> | |
515 | <b>__importsRelativeToAbsolute</b>(<i></i>) | |
516 | <p> | |
517 | Private slot to transform relative to absolute imports. | |
518 | </p><a NAME="Refactoring.__inline" ID="Refactoring.__inline"></a> | |
519 | <h4>Refactoring.__inline</h4> | |
520 | <b>__inline</b>(<i></i>) | |
521 | <p> | |
522 | Private slot to handle the Inline Local Variable action. | |
523 | </p><a NAME="Refactoring.__inlineArgumentDefault" ID="Refactoring.__inlineArgumentDefault"></a> | |
524 | <h4>Refactoring.__inlineArgumentDefault</h4> | |
525 | <b>__inlineArgumentDefault</b>(<i></i>) | |
526 | <p> | |
527 | Private slot to inline the default value of a parameter of a | |
528 | method or function. | |
529 | </p><a NAME="Refactoring.__introduceFactoryMethod" ID="Refactoring.__introduceFactoryMethod"></a> | |
530 | <h4>Refactoring.__introduceFactoryMethod</h4> | |
531 | <b>__introduceFactoryMethod</b>(<i></i>) | |
532 | <p> | |
533 | Private slot to introduce a factory method or global function. | |
534 | </p><a NAME="Refactoring.__introduceParameter" ID="Refactoring.__introduceParameter"></a> | |
535 | <h4>Refactoring.__introduceParameter</h4> | |
536 | <b>__introduceParameter</b>(<i></i>) | |
537 | <p> | |
538 | Private slot to introduce a parameter in a function. | |
539 | </p><a NAME="Refactoring.__methodToMethodObject" ID="Refactoring.__methodToMethodObject"></a> | |
540 | <h4>Refactoring.__methodToMethodObject</h4> | |
541 | <b>__methodToMethodObject</b>(<i></i>) | |
542 | <p> | |
543 | Private slot to change the signature of a method or function. | |
544 | </p><a NAME="Refactoring.__moveMethod" ID="Refactoring.__moveMethod"></a> | |
545 | <h4>Refactoring.__moveMethod</h4> | |
546 | <b>__moveMethod</b>(<i></i>) | |
547 | <p> | |
548 | Private slot to handle the Move Method action. | |
549 | </p><a NAME="Refactoring.__moveModule" ID="Refactoring.__moveModule"></a> | |
550 | <h4>Refactoring.__moveModule</h4> | |
551 | <b>__moveModule</b>(<i></i>) | |
552 | <p> | |
553 | Private slot to handle the Move Current Module action. | |
554 | </p><a NAME="Refactoring.__performSOA" ID="Refactoring.__performSOA"></a> | |
555 | <h4>Refactoring.__performSOA</h4> | |
556 | <b>__performSOA</b>(<i></i>) | |
557 | <p> | |
558 | Private slot to perform SOA on all modules. | |
559 | </p><a NAME="Refactoring.__queryDefinition" ID="Refactoring.__queryDefinition"></a> | |
560 | <h4>Refactoring.__queryDefinition</h4> | |
561 | <b>__queryDefinition</b>(<i></i>) | |
562 | <p> | |
55
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
563 | Private slot to handle the Find Definition action. |
17 | 564 | </p><a NAME="Refactoring.__queryImplementations" ID="Refactoring.__queryImplementations"></a> |
565 | <h4>Refactoring.__queryImplementations</h4> | |
566 | <b>__queryImplementations</b>(<i></i>) | |
567 | <p> | |
568 | Private slot to handle the Find Implementations action. | |
569 | </p><a NAME="Refactoring.__queryReferences" ID="Refactoring.__queryReferences"></a> | |
570 | <h4>Refactoring.__queryReferences</h4> | |
571 | <b>__queryReferences</b>(<i></i>) | |
572 | <p> | |
573 | Private slot to handle the Find References action. | |
574 | </p><a NAME="Refactoring.__redo" ID="Refactoring.__redo"></a> | |
575 | <h4>Refactoring.__redo</h4> | |
576 | <b>__redo</b>(<i></i>) | |
577 | <p> | |
578 | Private slot to redo the last refactoring. | |
579 | </p><a NAME="Refactoring.__rename" ID="Refactoring.__rename"></a> | |
580 | <h4>Refactoring.__rename</h4> | |
581 | <b>__rename</b>(<i></i>) | |
582 | <p> | |
583 | Private slot to handle the Rename action. | |
584 | </p><a NAME="Refactoring.__renameLocal" ID="Refactoring.__renameLocal"></a> | |
585 | <h4>Refactoring.__renameLocal</h4> | |
586 | <b>__renameLocal</b>(<i></i>) | |
587 | <p> | |
588 | Private slot to handle the Local Rename action. | |
589 | </p><a NAME="Refactoring.__renameModule" ID="Refactoring.__renameModule"></a> | |
590 | <h4>Refactoring.__renameModule</h4> | |
591 | <b>__renameModule</b>(<i></i>) | |
592 | <p> | |
593 | Private slot to handle the Rename Current Module action. | |
594 | </p><a NAME="Refactoring.__restructure" ID="Refactoring.__restructure"></a> | |
595 | <h4>Refactoring.__restructure</h4> | |
596 | <b>__restructure</b>(<i></i>) | |
597 | <p> | |
598 | Private slot to restructure code. | |
599 | </p><a NAME="Refactoring.__ropeConfigFile" ID="Refactoring.__ropeConfigFile"></a> | |
600 | <h4>Refactoring.__ropeConfigFile</h4> | |
601 | <b>__ropeConfigFile</b>(<i></i>) | |
602 | <p> | |
603 | Private method to get the name of the rope configuration file. | |
604 | </p><dl> | |
605 | <dt>Returns:</dt> | |
606 | <dd> | |
607 | name of the rope configuration file (string) | |
608 | </dd> | |
609 | </dl><a NAME="Refactoring.__ropeInfo" ID="Refactoring.__ropeInfo"></a> | |
610 | <h4>Refactoring.__ropeInfo</h4> | |
611 | <b>__ropeInfo</b>(<i></i>) | |
612 | <p> | |
613 | Private slot to show some info about rope. | |
614 | </p><a NAME="Refactoring.__showFileRedoHistory" ID="Refactoring.__showFileRedoHistory"></a> | |
615 | <h4>Refactoring.__showFileRedoHistory</h4> | |
616 | <b>__showFileRedoHistory</b>(<i></i>) | |
617 | <p> | |
24
e18b36080a37
Updated source docu after making the code PEP-8 compliant.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
17
diff
changeset
|
618 | Private method to show list of changes related to the current file |
17 | 619 | available for a redo operation. |
620 | </p><a NAME="Refactoring.__showFileUndoHistory" ID="Refactoring.__showFileUndoHistory"></a> | |
621 | <h4>Refactoring.__showFileUndoHistory</h4> | |
622 | <b>__showFileUndoHistory</b>(<i></i>) | |
623 | <p> | |
24
e18b36080a37
Updated source docu after making the code PEP-8 compliant.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
17
diff
changeset
|
624 | Private method to show list of changes related to the current file |
17 | 625 | available for an undo operation. |
626 | </p><a NAME="Refactoring.__showProjectRedoHistory" ID="Refactoring.__showProjectRedoHistory"></a> | |
627 | <h4>Refactoring.__showProjectRedoHistory</h4> | |
628 | <b>__showProjectRedoHistory</b>(<i></i>) | |
629 | <p> | |
630 | Private method to show list of changes available for a redo operation. | |
631 | </p><a NAME="Refactoring.__showProjectUndoHistory" ID="Refactoring.__showProjectUndoHistory"></a> | |
632 | <h4>Refactoring.__showProjectUndoHistory</h4> | |
633 | <b>__showProjectUndoHistory</b>(<i></i>) | |
634 | <p> | |
635 | Private method to show list of changes available for an undo operation. | |
636 | </p><a NAME="Refactoring.__showRefactoringHistoryMenu" ID="Refactoring.__showRefactoringHistoryMenu"></a> | |
637 | <h4>Refactoring.__showRefactoringHistoryMenu</h4> | |
638 | <b>__showRefactoringHistoryMenu</b>(<i></i>) | |
639 | <p> | |
640 | Private slot called before the refactoring history menu is shown. | |
641 | </p><a NAME="Refactoring.__showRefactoringMenu" ID="Refactoring.__showRefactoringMenu"></a> | |
642 | <h4>Refactoring.__showRefactoringMenu</h4> | |
643 | <b>__showRefactoringMenu</b>(<i></i>) | |
644 | <p> | |
645 | Private slot called before the refactoring menu is shown. | |
646 | </p><a NAME="Refactoring.__showRopeHelp" ID="Refactoring.__showRopeHelp"></a> | |
647 | <h4>Refactoring.__showRopeHelp</h4> | |
648 | <b>__showRopeHelp</b>(<i></i>) | |
649 | <p> | |
650 | Private slot to show help about the refactorings offered by Rope. | |
651 | </p><a NAME="Refactoring.__transformModuleToPackage" ID="Refactoring.__transformModuleToPackage"></a> | |
652 | <h4>Refactoring.__transformModuleToPackage</h4> | |
653 | <b>__transformModuleToPackage</b>(<i></i>) | |
654 | <p> | |
655 | Private slot to transform a module to a package. | |
656 | </p><a NAME="Refactoring.__undo" ID="Refactoring.__undo"></a> | |
657 | <h4>Refactoring.__undo</h4> | |
658 | <b>__undo</b>(<i></i>) | |
659 | <p> | |
660 | Private slot to undo the last refactoring. | |
661 | </p><a NAME="Refactoring.__updateConfig" ID="Refactoring.__updateConfig"></a> | |
662 | <h4>Refactoring.__updateConfig</h4> | |
663 | <b>__updateConfig</b>(<i></i>) | |
664 | <p> | |
665 | Private slot to update the configuration file. | |
666 | </p><a NAME="Refactoring.__useFunction" ID="Refactoring.__useFunction"></a> | |
667 | <h4>Refactoring.__useFunction</h4> | |
668 | <b>__useFunction</b>(<i></i>) | |
669 | <p> | |
670 | Private slot to use a function wherever possible. | |
671 | </p><a NAME="Refactoring.confirmAllBuffersSaved" ID="Refactoring.confirmAllBuffersSaved"></a> | |
672 | <h4>Refactoring.confirmAllBuffersSaved</h4> | |
673 | <b>confirmAllBuffersSaved</b>(<i></i>) | |
674 | <p> | |
87
1fbf5fdbe721
Ported to PyQt5 and eric6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
55
diff
changeset
|
675 | Public method to check, if any editor has unsaved changes. |
17 | 676 | </p><dl> |
677 | <dt>Returns:</dt> | |
678 | <dd> | |
679 | flag indicating, that no editor contains unsaved edits | |
680 | (boolean) | |
681 | </dd> | |
682 | </dl><a NAME="Refactoring.confirmBufferIsSaved" ID="Refactoring.confirmBufferIsSaved"></a> | |
683 | <h4>Refactoring.confirmBufferIsSaved</h4> | |
684 | <b>confirmBufferIsSaved</b>(<i>editor</i>) | |
685 | <p> | |
686 | Public method to check, if an editor has unsaved changes. | |
687 | </p><dl> | |
688 | <dt><i>editor</i></dt> | |
689 | <dd> | |
690 | reference to the editor to be checked | |
691 | </dd> | |
692 | </dl><dl> | |
693 | <dt>Returns:</dt> | |
694 | <dd> | |
695 | flag indicating, that the editor doesn't contain | |
696 | unsaved edits (boolean) | |
697 | </dd> | |
698 | </dl><a NAME="Refactoring.getActions" ID="Refactoring.getActions"></a> | |
699 | <h4>Refactoring.getActions</h4> | |
700 | <b>getActions</b>(<i></i>) | |
701 | <p> | |
702 | Public method to get a list of all actions. | |
703 | </p><dl> | |
704 | <dt>Returns:</dt> | |
705 | <dd> | |
706 | list of all actions (list of E5Action) | |
707 | </dd> | |
708 | </dl><a NAME="Refactoring.getProject" ID="Refactoring.getProject"></a> | |
709 | <h4>Refactoring.getProject</h4> | |
710 | <b>getProject</b>(<i></i>) | |
711 | <p> | |
712 | Public method to get a reference to the rope project object. | |
713 | </p><dl> | |
714 | <dt>Returns:</dt> | |
715 | <dd> | |
716 | reference to the rope project object (RopeProject) | |
717 | </dd> | |
129
23ee57a96ea3
Added capability to go to the definition of a class or function by clicking on it (while holding the Ctrl key or another configurable modifier sequence) (needs eric 6.1.0).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
107
diff
changeset
|
718 | </dl><a NAME="Refactoring.gotoDefinition" ID="Refactoring.gotoDefinition"></a> |
23ee57a96ea3
Added capability to go to the definition of a class or function by clicking on it (while holding the Ctrl key or another configurable modifier sequence) (needs eric 6.1.0).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
107
diff
changeset
|
719 | <h4>Refactoring.gotoDefinition</h4> |
23ee57a96ea3
Added capability to go to the definition of a class or function by clicking on it (while holding the Ctrl key or another configurable modifier sequence) (needs eric 6.1.0).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
107
diff
changeset
|
720 | <b>gotoDefinition</b>(<i></i>) |
23ee57a96ea3
Added capability to go to the definition of a class or function by clicking on it (while holding the Ctrl key or another configurable modifier sequence) (needs eric 6.1.0).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
107
diff
changeset
|
721 | <p> |
23ee57a96ea3
Added capability to go to the definition of a class or function by clicking on it (while holding the Ctrl key or another configurable modifier sequence) (needs eric 6.1.0).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
107
diff
changeset
|
722 | Public slot to find the definition for the word at the cursor position |
23ee57a96ea3
Added capability to go to the definition of a class or function by clicking on it (while holding the Ctrl key or another configurable modifier sequence) (needs eric 6.1.0).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
107
diff
changeset
|
723 | and go to it. |
23ee57a96ea3
Added capability to go to the definition of a class or function by clicking on it (while holding the Ctrl key or another configurable modifier sequence) (needs eric 6.1.0).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
107
diff
changeset
|
724 | </p><p> |
23ee57a96ea3
Added capability to go to the definition of a class or function by clicking on it (while holding the Ctrl key or another configurable modifier sequence) (needs eric 6.1.0).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
107
diff
changeset
|
725 | Note: This is executed upon a mouse click sequence. |
23ee57a96ea3
Added capability to go to the definition of a class or function by clicking on it (while holding the Ctrl key or another configurable modifier sequence) (needs eric 6.1.0).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
107
diff
changeset
|
726 | </p><a NAME="Refactoring.handleRopeError" ID="Refactoring.handleRopeError"></a> |
17 | 727 | <h4>Refactoring.handleRopeError</h4> |
728 | <b>handleRopeError</b>(<i>err, title, handle=None</i>) | |
729 | <p> | |
730 | Public slot to handle a rope error. | |
731 | </p><dl> | |
732 | <dt><i>err</i></dt> | |
733 | <dd> | |
734 | rope exception object (Exception) | |
735 | </dd><dt><i>title</i></dt> | |
736 | <dd> | |
737 | title to be displayed (string) | |
738 | </dd><dt><i>handle</i></dt> | |
739 | <dd> | |
740 | reference to a taskhandle (ProgressHandle) | |
741 | </dd> | |
742 | </dl><a NAME="Refactoring.initActions" ID="Refactoring.initActions"></a> | |
743 | <h4>Refactoring.initActions</h4> | |
744 | <b>initActions</b>(<i></i>) | |
745 | <p> | |
746 | Public method to define the refactoring actions. | |
747 | </p><a NAME="Refactoring.initMenu" ID="Refactoring.initMenu"></a> | |
748 | <h4>Refactoring.initMenu</h4> | |
749 | <b>initMenu</b>(<i></i>) | |
750 | <p> | |
751 | Public slot to initialize the refactoring menu. | |
752 | </p><dl> | |
753 | <dt>Returns:</dt> | |
754 | <dd> | |
755 | the menu generated (QMenu) | |
756 | </dd> | |
757 | </dl><a NAME="Refactoring.projectClosed" ID="Refactoring.projectClosed"></a> | |
758 | <h4>Refactoring.projectClosed</h4> | |
759 | <b>projectClosed</b>(<i></i>) | |
760 | <p> | |
761 | Public slot to handle the projectClosed signal. | |
762 | </p><a NAME="Refactoring.projectOpened" ID="Refactoring.projectOpened"></a> | |
763 | <h4>Refactoring.projectOpened</h4> | |
764 | <b>projectOpened</b>(<i></i>) | |
765 | <p> | |
766 | Public slot to handle the projectOpened signal. | |
767 | </p><a NAME="Refactoring.refreshEditors" ID="Refactoring.refreshEditors"></a> | |
768 | <h4>Refactoring.refreshEditors</h4> | |
769 | <b>refreshEditors</b>(<i>changes</i>) | |
770 | <p> | |
771 | Public method to refresh modified editors. | |
772 | </p><dl> | |
55
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
773 | <dt><i>changes</i></dt> |
17 | 774 | <dd> |
55
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
775 | reference to the ChangeSet object |
d501156be247
Fixed code style issues.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
44
diff
changeset
|
776 | (rope.base.change.ChangeSet) |
17 | 777 | </dd> |
107
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
778 | </dl><a NAME="Refactoring.reportChanged" ID="Refactoring.reportChanged"></a> |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
779 | <h4>Refactoring.reportChanged</h4> |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
780 | <b>reportChanged</b>(<i>filename, oldSource</i>) |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
781 | <p> |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
782 | Public slot to report some changed sources. |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
783 | </p><dl> |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
784 | <dt><i>filename</i></dt> |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
785 | <dd> |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
786 | file name of the changed source (string) |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
787 | </dd><dt><i>oldSource</i></dt> |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
788 | <dd> |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
789 | source code before the change (string) |
3ee7bd0bba9a
Prepared new release.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
87
diff
changeset
|
790 | </dd> |
17 | 791 | </dl> |
792 | <div align="right"><a href="#top">Up</a></div> | |
793 | <hr /> | |
794 | </body></html> |