Public Member Functions | |
def | __init__ |
def | get_action |
def | supports_file |
def | open_file |
def | close_file |
File viewer or editor.
Definition at line 461 of file environment.py.
def encode.environment.HandlerExtension.__init__ | ( | self | ) |
Reimplemented from encode.extension.Extension.
Reimplemented in encode.emacs.Handler, and encode.vim.Handler.
Definition at line 464 of file environment.py.
def encode.environment.HandlerExtension.close_file | ( | self, | ||
path | ||||
) |
Close the buffer associated with PATH if one exists.
Reimplemented in encode.emacs.Handler, and encode.vim.Handler.
Definition at line 483 of file environment.py.
def encode.environment.HandlerExtension.get_action | ( | self | ) |
Return a gtk.Action for opening files.
Reimplemented in encode.emacs.Handler, and encode.vim.Handler.
Definition at line 467 of file environment.py.
def encode.environment.HandlerExtension.open_file | ( | self, | ||
path, | ||||
workdir = None , |
||||
line = None | ||||
) |
Open file PATH for editing or bring the associated buffer to foreground if one exists. Attempt to move the cursor to LINE if it's specified. WORKDIR is the root of the project tree where PATH is located (it may be used to update the handler's state).
Reimplemented in encode.emacs.Handler, and encode.vim.Handler.
Definition at line 475 of file environment.py.
def encode.environment.HandlerExtension.supports_file | ( | self, | ||
path | ||||
) |
Return True if the file type of PATH is supported by this handler.
Reimplemented in encode.emacs.Handler, and encode.vim.Handler.
Definition at line 471 of file environment.py.