aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m16
1 files changed, 14 insertions, 2 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index ca89d597..28e898a5 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -1177,13 +1177,17 @@ NSString *TableDocumentFavoritesControllerSelectionIndexDidChange = @"TableDocum
if ([tableSyntax isKindOfClass:[NSData class]])
tableSyntax = [[NSString alloc] initWithData:tableSyntax encoding:[mySQLConnection encoding]];
+ [syntaxViewContent setEditable:YES];
if([tablesListInstance tableType] == SP_TABLETYPE_VIEW)
[syntaxViewContent setString:[tableSyntax createViewSyntaxPrettifier]];
else
[syntaxViewContent setString:tableSyntax];
-
+ [syntaxViewContent setEditable:NO];
+
[createTableSyntaxWindow setTitle:createWindowTitle];
- [createTableSyntaxWindow makeKeyAndOrderFront:self];
+
+ if(![createTableSyntaxWindow isVisible])
+ [createTableSyntaxWindow makeKeyAndOrderFront:self];
}
/**
@@ -1923,6 +1927,14 @@ NSString *TableDocumentFavoritesControllerSelectionIndexDidChange = @"TableDocum
}
}
+/*
+ * Return the createTableSyntaxWindow
+ */
+- (NSWindow *)getCreateTableSyntaxWindow
+{
+ return createTableSyntaxWindow;
+}
+
#pragma mark Toolbar Methods
/**