diff options
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r-- | Source/CustomQuery.m | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m index 2e26f08e..0d4207a0 100644 --- a/Source/CustomQuery.m +++ b/Source/CustomQuery.m @@ -2454,6 +2454,21 @@ [self helpTargetValidation]; } +- (IBAction)showCompletionList:(id)sender +{ + NSRange insertRange = NSMakeRange([textView selectedRange].location, 0); + switch([sender tag]) { + case 8000: + [textView showCompletionListFor:@"$SP_ASLIST_ALL_DATABASES" atRange:insertRange fuzzySearch:NO]; + break; + case 8001: + [textView showCompletionListFor:@"$SP_ASLIST_ALL_TABLES" atRange:insertRange fuzzySearch:NO]; + break; + case 8002: + [textView showCompletionListFor:@"$SP_ASLIST_ALL_FIELDS_FROM_SELECTED_TABLE" atRange:insertRange fuzzySearch:NO]; + break; + } +} /* * Show the data for "HELP 'currentWord' invoked by autohelp" */ |