Package net.sourceforge.squirrel_sql.client.gui.db

Examples of net.sourceforge.squirrel_sql.client.gui.db.ColumnListDialog


  {
    ITableInfo ti = (ITableInfo) _info[0];
    TableColumnInfo[] columns = _session.getMetaData().getColumnInfo(ti);

    // Show the user a dialog with a list of columns and ask them to select
    customDialog = new ColumnListDialog(columns, ColumnListDialog.DROP_COLUMN_MODE);
    customDialog.setMultiSelection();
    customDialog.setTableName(ti.getQualifiedName());

    customDialog.addColumnSelectionListener(new ExecuteListener());
    customDialog.addEditSQLListener(new EditSQLListener(customDialog));
View Full Code Here


      _session.showErrorMessage(s_stringMgr.getString("AddPrimaryKeyCommand.noColumns", ti.getSimpleName()));
      return;
    }

    // Show the user a dialog with a list of columns and ask them to select one or more columns to drop
    customDialog = new ColumnListDialog(columns, ColumnListDialog.ADD_PRIMARY_KEY_MODE);
    customDialog.setTableName(ti.getQualifiedName());
    // Set a default primary key name based on the name of the table
    customDialog.setPrimaryKeyName("PK_" + columns[0].getTableName().toUpperCase());

    customDialog.addColumnSelectionListener(new ExecuteListener());
View Full Code Here

  {
    ITableInfo ti = (ITableInfo) _info[0];
    TableColumnInfo[] columns = getPkTableColumns(ti);

    // Show the user a dialog with a list of columns and ask them to select
    customDialog = new ColumnListDialog(columns, ColumnListDialog.DROP_PRIMARY_KEY_MODE);
    customDialog.addColumnSelectionListener(new ExecuteListener());
    customDialog.addEditSQLListener(new EditSQLListener(customDialog));
    customDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, customDialog));
    customDialog.setLocationRelativeTo(_session.getApplication().getMainFrame());
    customDialog.setMultiSelection();
View Full Code Here

    {
      columnToModify = tableColumnInfos[0];
      showCustomDialog();
    } else
    {
      listDialog = new ColumnListDialog(tableColumnInfos, ColumnListDialog.MODIFY_COLUMN_MODE);
      listDialog.addColumnSelectionListener(new ColumnListSelectionActionListener());
      listDialog.setLocationRelativeTo(_session.getApplication().getMainFrame());
      listDialog.setSingleSelection();
      listDialog.setTableName(selectedTable.getSimpleName());
      listDialog.setVisible(true);
View Full Code Here

    {
      if (s_log.isDebugEnabled()) {
        s_log.debug("Table has exactly " + columns.length
          + " columns, so presenting the column list selection dialog");
      }
      listDialog = new ColumnListDialog(columns, ColumnListDialog.MODIFY_COLUMN_MODE);
      listDialog.setTableName(ti.getQualifiedName());
      listDialog.setSingleSelection();
      listDialog.addColumnSelectionListener(new ColumnListSelectionActionListener());
      listDialog.setLocationRelativeTo(_session.getApplication().getMainFrame());
      listDialog.setVisible(true);
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.client.gui.db.ColumnListDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.