FileConnectAction.java :  » Database-Client » SQL-Workbench » workbench » gui » actions » Java Open Source

Java Open Source » Database Client » SQL Workbench 
SQL Workbench » workbench » gui » actions » FileConnectAction.java
/*
 * FileConnectAction.java
 *
 * This file is part of SQL Workbench/J, http://www.sql-workbench.net
 *
 * Copyright 2002-2008, Thomas Kellerer
 * No part of this code maybe reused without the permission of the author
 *
 * To contact the author please send an email to: support@sql-workbench.net
 *
 */
package workbench.gui.actions;

import java.awt.event.ActionEvent;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;

import javax.swing.KeyStroke;

import workbench.gui.MainWindow;
import workbench.resource.ResourceMgr;

/**
 * Display the connect dialog
 * @author support@sql-workbench.net
 */
public class FileConnectAction extends WbAction
{
  private MainWindow window;

  public FileConnectAction(MainWindow aWindow)
  {
    super();
    this.window = aWindow;
    this.initMenuDefinition("MnuTxtConnect", KeyStroke.getKeyStroke(KeyEvent.VK_C, InputEvent.ALT_MASK));
  }

  public void executeAction(ActionEvent e)
  {
    this.window.selectConnection();
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.