Skip to content

Commit

Permalink
TEIIDDES-662: Increase options for DDL export of models
Browse files Browse the repository at this point in the history
* Rather than just exporting to file, extend the wizard to allow exporting
  of the DDL to the clipboard and to an SQL scrapbook. The latter will have
  no db connection profile but will show the text highlighted syntactically.
  • Loading branch information
Paul Richardson committed Jan 30, 2013
1 parent d4fa69f commit 24162c3
Show file tree
Hide file tree
Showing 4 changed files with 263 additions and 74 deletions.
5 changes: 4 additions & 1 deletion plugins/org.teiid.designer.ui/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ Require-Bundle: org.eclipse.ui.cheatsheets;bundle-version="[3.4.200,4.0.0)",
org.teiid.designer.udf;bundle-version="[8.0.0,9.0.0)",
org.eclipse.ui.navigator;bundle-version="[3.5.200,4.0.0)",
org.eclipse.ui.navigator.resources;bundle-version="[3.4.400,4.0.0)",
org.teiid.designer.spi;bundle-version="[8.0.0,9.0.0)"
org.teiid.designer.spi;bundle-version="[8.0.0,9.0.0)",
org.eclipse.datatools.sqltools.editor.core;bundle-version="1.0.2",
org.eclipse.datatools.sqltools.sqleditor;bundle-version="1.0.2",
org.eclipse.datatools.sqltools.sqlscrapbook;bundle-version="1.0.2"
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
4 changes: 2 additions & 2 deletions plugins/org.teiid.designer.ui/plugin.properties
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ modelTableEditor=Table Editor
importDatabaseViaJdbcWizard.name = Metadata from JDBC Database
importDatabaseViaJdbcWizard.description = Import metadata using JDBC from a database into a new or existing relational model.

exportDdlWizard.name = Data Definition Language (DDL) file
exportDdlWizard.description = Export metadata from a model into a data definition language (DDL) file.
exportDdlWizard.name = Data Definition Language (DDL)
exportDdlWizard.description = Export metadata from a model into data definition language (DDL), exporting to either the clipboard, a file or an SQL scrapbook.

exportModelerProjectSetWizard.name = Model Project Set
exportModelerProjectSetWizard.description = Export the selected Model Projects to an archive file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,8 @@ ExportDdlWizard.noSelectionsMessage = \
Select the metadata to export.
ExportDdlWizard.noTypeMessage = \
Select the type of DDL to generate.
ExportDdlWizard.noExportChoiceMessage = \
A choice for the export destination must be selected.
ExportDdlWizard.noFileMessage = \
Enter the absolute file system path of the DDL file to create.
ExportDdlWizard.invalidFileMessage = \
Expand All @@ -766,6 +768,10 @@ ExportDdlWizard.useNativeTypeCheckBox = Generate Types from ''Native Type'' (if
ExportDdlWizard.enforceUnqiueNamesCheckBox = Generate unique names for duplicately-named Keys, Constraints, and Indexes
ExportDdlWizard.fileGroup = Export To:
ExportDdlWizard.fileLabel = File:
ExportDdlWizard.clipboardChoiceLabel = Clipboard
ExportDdlWizard.fileChoiceLabel = File
ExportDdlWizard.sqlChoiceLabel = SQL Workbook
ExportDdlWizard.clipboardTooltip = Facility for short-term storage of data. The DDL text is held in this clipboard and can be added to other applications and files using their paste functions

#=================================================================================================================================
# ExportModelerProjectSetWizard
Expand Down

0 comments on commit 24162c3

Please sign in to comment.