Files
textmate/Frameworks/DocumentWindow/src/DocumentCommand.h
Allan Odgaard 6d1da8ce97 Use bundle item’s effective name in error and cancel sheets
For example the bundle item “Execute Line / Selection” will (without a selection) show as “Execute Line” in the menu, and now also if the command causes the error sheet to appear or the user press ⌃C / ⌘. to prematurely kill it.
2014-04-09 15:15:36 +07:00

12 lines
571 B
Objective-C

#ifndef DOCUMENT_COMMAND_H_KLPQDYHU
#define DOCUMENT_COMMAND_H_KLPQDYHU
#import <document/document.h>
#import <document/collection.h>
#import <command/parser.h>
void run_impl (bundle_command_t const& command, ng::buffer_t const& buffer, ng::ranges_t const& selection, document::document_ptr document, std::map<std::string, std::string> env, std::string const& pwd);
void show_command_error (std::string const& message, oak::uuid_t const& uuid, NSWindow* window = nil, std::string commandName = NULL_STR);
#endif /* end of include guard: DOCUMENT_COMMAND_H_KLPQDYHU */