Package peppy :: Package actions :: Module gotoline :: Class GotoLine
[frames] | no frames]

Class GotoLine

                object --+            
                         |            
base.BufferBusyActionMixin --+        
                             |        
            object --+       |        
                     |       |        
      debug.debugmixin --+   |        
                         |   |        
              SelectAction --+        
                             |        
   base.TextModificationAction --+    
                                 |    
       minibuffer.MinibufferAction --+
                                     |
                                    GotoLine

Goto a line number.

Use minibuffer to request a line number, then go to that line in the stc.

Nested Classes
  minibuffer
Dedicated subclass of Minibuffer that prompts for an integer.
Instance Methods
 
processMinibuffer(self, minibuffer, mode, line)
Callback function used to set the stc to the correct line.

Inherited from minibuffer.MinibufferAction: action, getInitialValueHook

Inherited from base.BufferBusyActionMixin: isActionAvailable, isEnabled

Inherited from SelectAction: __call__, __init__, getMenuItemName, getSubIds, getTooltip, initPostHook, initPreHook, insertIntoMenu, insertIntoToolbar, showEnable

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Methods

Inherited from base.TextModificationAction: worksWithMajorMode

Inherited from SelectAction: getHelp, setAcceleratorText

Inherited from debug.debugmixin: dprint

Class Variables
  alias = 'goto-line'
This alias holds an emacs style name that is used during M-X processing.
  name = 'Goto Line...'
This is the name of the menu entry as it appears in the menu bar.
  tooltip = 'Goto a line in the text.'
Tooltip that is displayed when the mouse is hovering over the menu entry.
  default_menu = ('View', -250)
The default menu location is specified here as a tuple containing the menu path (separated by / characters) and a number between 1 and 1000 representing the position within the menu.
  key_bindings = {'default': 'C-G', 'emacs': 'M-G'}
Map of platform to default keybinding.
  minibuffer_label = 'Goto Line:'

Inherited from SelectAction: default_toolbar, global_id, icon, keyboard, stock_id

Inherited from debug.debugmixin: debuglevel

Properties

Inherited from object: __class__

Method Details

processMinibuffer(self, minibuffer, mode, line)

 

Callback function used to set the stc to the correct line.

Overrides: minibuffer.MinibufferAction.processMinibuffer