Package peppy :: Package actions :: Module base :: Class TextModificationAction
[frames] | no frames]

Class TextModificationAction

           object --+    
                    |    
BufferBusyActionMixin --+
                        |
       object --+       |
                |       |
 debug.debugmixin --+   |
                    |   |
         SelectAction --+
                        |
                       TextModificationAction
Known Subclasses:

Base class for any action that changes the bytes in the buffer.

This uses the BufferBusyActionMixin to disable any action that would change the buffer when the buffer is in the process of being modified by a long-running process.

Instance Methods

Inherited from BufferBusyActionMixin: isActionAvailable, isEnabled

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

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

Class Methods
 
worksWithMajorMode(cls, mode)
Hook to restrict the action to only be displayed with a specific major mode

Inherited from SelectAction: getHelp, setAcceleratorText

Inherited from debug.debugmixin: dprint

Class Variables

Inherited from SelectAction: alias, default_menu, default_toolbar, global_id, icon, key_bindings, keyboard, name, stock_id, tooltip

Inherited from debug.debugmixin: debuglevel

Properties

Inherited from object: __class__

Method Details

worksWithMajorMode(cls, mode)
Class Method

 

Hook to restrict the action to only be displayed with a specific major mode

This hook is called by the menu creation code to determine if the action should be displayed when showing the major mode's user interface.

Parameters:
  • mode - the major mode instance
Returns:
True if the action is allowed to be associated with the major mode
Overrides: SelectAction.worksWithMajorMode
(inherited documentation)