Class DatabaseExplorerDialog


  • @GuiPlugin
    public class DatabaseExplorerDialog
    extends org.eclipse.swt.widgets.Dialog
    This dialog represents an explorer type of interface on a given database connection. It shows the tables defined in the visible schemas or catalogs on that connection. The interface also allows you to get all kinds of information on those tables.
    • Constructor Detail

      • DatabaseExplorerDialog

        public DatabaseExplorerDialog​(org.eclipse.swt.widgets.Shell parent,
                                      int style,
                                      IVariables variables,
                                      DatabaseMeta conn,
                                      List<DatabaseMeta> databases,
                                      boolean look,
                                      boolean splitSchemaAndTable)
    • Method Detail

      • setSelectedTable

        public void setSelectedTable​(String selectedTable)
      • open

        public boolean open()
      • expandAll

        @GuiToolbarElement(root="DatabaseExplorerDialog-Toolbar",
                           id="DatabaseExplorer-ToolBar-10100-ExpandAll",
                           toolTip="i18n::DatabaseExplorerDialog.Toolbar.ExpandAll.Tooltip",
                           type=BUTTON,
                           image="ui/images/expand-all.svg")
        public void expandAll()
      • collapseAll

        @GuiToolbarElement(root="DatabaseExplorerDialog-Toolbar",
                           id="DatabaseExplorer-ToolBar-10200-CollapseAll",
                           toolTip="i18n::DatabaseExplorerDialog.Toolbar.CollapseAll.Tooltip",
                           type=BUTTON,
                           image="ui/images/collapse-all.svg")
        public void collapseAll()
      • setTreeMenu

        public void setTreeMenu()
      • previewTable

        public void previewTable​(String tableName,
                                 boolean asklimit)
      • showTable

        public void showTable​(String tableName)
      • showCount

        public void showCount​(String tableName)
      • getDDL

        public void getDDL​(String tableName)
      • getDDLForOther

        public void getDDLForOther​(String tableName)
      • getSql

        public void getSql​(String tableName)
      • getTruncate

        public void getTruncate​(String activeSchemaTable)
      • dispose

        public void dispose()
      • ok

        public void ok()
      • openSchema

        public void openSchema​(org.eclipse.swt.widgets.Event e)
      • getSchemaName

        public String getSchemaName()
        Returns:
        the schemaName
      • setSchemaName

        public void setSchemaName​(String schemaName)
        Parameters:
        schemaName - the schemaName to set
      • getTableName

        public String getTableName()
        Returns:
        the tableName
      • setTableName

        public void setTableName​(String tableName)
        Parameters:
        tableName - the tableName to set
      • isSplitSchemaAndTable

        public boolean isSplitSchemaAndTable()
        Returns:
        the splitSchemaAndTable
      • setSplitSchemaAndTable

        public void setSplitSchemaAndTable​(boolean splitSchemaAndTable)
        Parameters:
        splitSchemaAndTable - the splitSchemaAndTable to set
      • getSelectedSchema

        public String getSelectedSchema()
        Returns:
        the selectSchema
      • setSelectedSchema

        public void setSelectedSchema​(String selectSchema)
        Parameters:
        selectSchema - the selectSchema to set
      • setSelectedSchemaAndTable

        public void setSelectedSchemaAndTable​(String schemaName,
                                              String tableName)