Examples of ITableInfo


Examples of net.sourceforge.squirrel_sql.fw.sql.ITableInfo

   * @see net.sourceforge.squirrel_sql.plugins.refactoring.commands.AbstractRefactoringCommand#onExecute()
   */
  @Override
  protected void onExecute() throws SQLException
  {
    ITableInfo selectedTable = (ITableInfo) _info[0];
    TableColumnInfo[] tableColumnInfos = _session.getMetaData().getColumnInfo(selectedTable);

    if (tableColumnInfos.length == 1)
    {
      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
TOP
Copyright © 2018 www.massapi.com. 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.