diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-08-05 21:14:15 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-08-05 21:14:15 +0000 |
commit | ed4617c7fc292ac15a3cb340b2247d58793d3ca4 (patch) | |
tree | cc32cc3a93ed8a8001945d85d9242aa6a8d42682 /Source/CustomQuery.m | |
parent | 493fb09f6169864726be9909907fa1b84b3d0a21 (diff) | |
download | sequelpro-ed4617c7fc292ac15a3cb340b2247d58793d3ca4.tar.gz sequelpro-ed4617c7fc292ac15a3cb340b2247d58793d3ca4.tar.bz2 sequelpro-ed4617c7fc292ac15a3cb340b2247d58793d3ca4.zip |
• open a SQL file via Finder or Terminal (open *.sql if SP is the default app for sql files) will insert the file content into the Custom Query editor of the current active doc
- this action starts SP and asks for a connection if it is not running
- same for drag&drop a SQL file onto SP's dock icon
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r-- | Source/CustomQuery.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m index d6194484..5f8c368a 100644 --- a/Source/CustomQuery.m +++ b/Source/CustomQuery.m @@ -1201,6 +1201,11 @@ [textView setString:query]; [self runAllQueries:self]; } +- (void)doPerformLoadQueryService:(NSString *)query +{ + [textView setString:query]; + [textView insertText:@""]; +} - (NSString *)usedQuery { |