diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-09-01 10:53:11 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-09-01 10:53:11 +0000 |
commit | 33db54fee22d960cf51478fcb79649b19d131d01 (patch) | |
tree | 89c9daf4d38f6c523f804ca0b28f35ad1e9307bd /Source/SPTablesList.m | |
parent | a57a5858fb2d8e876224bc5a7b5833fc8e196acf (diff) | |
download | sequelpro-33db54fee22d960cf51478fcb79649b19d131d01.tar.gz sequelpro-33db54fee22d960cf51478fcb79649b19d131d01.tar.bz2 sequelpro-33db54fee22d960cf51478fcb79649b19d131d01.zip |
• Show/Copy Create Syntax now come up with all create syntaxes of selected items
• if Create Syntax is a PROC wrap the output by DELIMITER ;; etc. to simplify a copy&paste
• merged code for copyCreateTableSyntax into showCreateTableSyntax distinguished by the sender (if sender == self) then copy otherwise show
Diffstat (limited to 'Source/SPTablesList.m')
-rw-r--r-- | Source/SPTablesList.m | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/SPTablesList.m b/Source/SPTablesList.m index b0e4594e..e3a5cdd3 100644 --- a/Source/SPTablesList.m +++ b/Source/SPTablesList.m @@ -886,18 +886,22 @@ [renameTableContextMenuItem setHidden:YES]; [duplicateTableContextMenuItem setHidden:YES]; [separatorTableContextMenuItem setHidden:YES]; - [separatorTableContextMenuItem2 setHidden:YES]; - [showCreateSyntaxContextMenuItem setHidden:YES]; + [separatorTableContextMenuItem2 setHidden:NO]; + [showCreateSyntaxContextMenuItem setTitle:NSLocalizedString(@"Show Create Syntaxes...", @"show create syntaxes menu item")]; + [showCreateSyntaxContextMenuItem setHidden:NO]; // 'Gear' menu [renameTableMenuItem setHidden:YES]; [duplicateTableMenuItem setHidden:YES]; [separatorTableMenuItem setHidden:YES]; - [separatorTableMenuItem2 setHidden:YES]; - [showCreateSyntaxMenuItem setHidden:YES]; + [separatorTableMenuItem2 setHidden:NO]; + [showCreateSyntaxMenuItem setTitle:NSLocalizedString(@"Show Create Syntaxes...", @"show create syntaxes menu item")]; + [showCreateSyntaxMenuItem setHidden:NO]; // Get main menu "Table"'s submenu NSMenu *tableSubMenu = [[[NSApp mainMenu] itemWithTag:SPMainMenuTable] submenu]; + [[tableSubMenu itemAtIndex:3] setTitle:NSLocalizedString(@"Copy Create Syntaxes", @"copy create syntaxes menu item")]; + [[tableSubMenu itemAtIndex:4] setTitle:NSLocalizedString(@"Show Create Syntaxes...", @"show create syntaxes menu item")]; [[tableSubMenu itemAtIndex:6] setTitle:NSLocalizedString(@"Check Selected Items", @"check selected items menu item")]; [[tableSubMenu itemAtIndex:7] setTitle:NSLocalizedString(@"Repair Selected Items", @"repair selected items menu item")]; |