Table of Contents

Class: Refactoring eric3/Refactoring/Refactoring.py

Class implementing the refactoring interface to brm.

Base Classes   
QObject
Methods   
__init__
__unhandledException
confirmAllBuffersSaved
confirmBufferIsSaved
getActions
handleExtractLocalVariable
handleExtractMethod
handleInlineLocalVariable
handlePreferencesChanged
handleQueryDefinition
handleQueryReferences
handleRename
handleReset
handleUndo
init
initActions
initMenu
refreshEditors
renameMethodPromptCallback
setMenuItemsEnabled
showOutput
  __init__ 
__init__ (
        self,
        parent=None,
        *args,
        )

Constructor

Arguments

parent
parent (QObject)
*args
arguments passed on to QObject
  __unhandledException 
__unhandledException ( self,  msg )

Private method handling not specifically handled exceptions.

Arguments

msg
message describing the exception
  confirmAllBuffersSaved 
confirmAllBuffersSaved ( self )

Private method to check, if any editor has unsaved changes.

  confirmBufferIsSaved 
confirmBufferIsSaved ( self,  editor )

Private method to check, if an editor has unsaved changes.

  getActions 
getActions ( self )

Public method to get a list of all actions.

Returns

list of all actions (list of QAction)

  handleExtractLocalVariable 
handleExtractLocalVariable ( self )

Private slot to handle the Extract Local Variable action.

  handleExtractMethod 
handleExtractMethod ( self )

Private slot to handle the Extract Method action.

  handleInlineLocalVariable 
handleInlineLocalVariable ( self )

Private slot to handle the Inline Local Variable action.

  handlePreferencesChanged 
handlePreferencesChanged ( self )

Public slot called when the preferences have been changed.

  handleQueryDefinition 
handleQueryDefinition ( self )

Private slot to handle the Query Definition action

  handleQueryReferences 
handleQueryReferences ( self )

Private slot to handle the Query References action.

  handleRename 
handleRename ( self )

Private slot to handle the Rename action.

  handleReset 
handleReset ( self )

Private slot to handle the Reset action.

  handleUndo 
handleUndo ( self )

Private slot to handle the Undo action.

  init 
init ( self )

Private slot to handle the Reset action.

  initActions 
initActions ( self )

Public method to define the refactoring actions.

  initMenu 
initMenu ( self )

Public slot to initialize the refactoring menu.

Returns

the menu generated (QPopupMenu)

  refreshEditors 
refreshEditors (
        self,
        savedfiles,
        filename,
        line,
        )

Private method to refresh modified editors.

Arguments

savedfiles
list of filenames of modified files (list of strings)
filename
filename of the active editor (string)
line
line to place cursor at (int)
  renameMethodPromptCallback 
renameMethodPromptCallback (
        self,
        filename,
        line,
        start,
        stop,
        )

Private slot called by the refactoring machine to ask the user for confirmation.

Arguments

filename
the name of the file (string)
line
the line of the object (int)
start
beginning column of the object (int)
stop
end column of the object (int)

Returns

flag indicating renaming wanted (boolean)

  setMenuItemsEnabled 
setMenuItemsEnabled ( self,  enabled )

Private method to enable/disable menu items.

  showOutput 
showOutput ( self )

Private method to switch to the relevant output tab.


Table of Contents

This document was automatically generated by HappyDoc version 2.1