01: package net.sourceforge.squirrel_sql.client.mainframe.action;
02:
03: import net.sourceforge.squirrel_sql.client.action.SquirrelAction;
04: import net.sourceforge.squirrel_sql.client.gui.db.AliasesList;
05: import net.sourceforge.squirrel_sql.client.IApplication;
06: import net.sourceforge.squirrel_sql.fw.sql.ISQLAlias;
07:
08: import java.awt.event.ActionEvent;
09:
10: public class AliasPropertiesAction extends SquirrelAction {
11: private AliasesList _aliasList;
12:
13: public AliasPropertiesAction(IApplication app, AliasesList al) {
14: super (app);
15: _aliasList = al;
16: }
17:
18: public void actionPerformed(ActionEvent e) {
19: ISQLAlias selectedAlias = _aliasList.getSelectedAlias();
20:
21: if (null == selectedAlias) {
22: return;
23: }
24:
25: new AliasPropertiesCommand(selectedAlias, getApplication())
26: .execute();
27: }
28:
29: }
|