01: package net.sourceforge.squirrel_sql.client.mainframe.action;
02:
03: import net.sourceforge.squirrel_sql.fw.sql.ISQLAlias;
04: import net.sourceforge.squirrel_sql.client.gui.db.aliasproperties.AliasPropertiesController;
05: import net.sourceforge.squirrel_sql.client.gui.db.SQLAlias;
06: import net.sourceforge.squirrel_sql.client.IApplication;
07:
08: public class AliasPropertiesCommand {
09: private ISQLAlias _selectedAlias;
10: private IApplication _app;
11:
12: public AliasPropertiesCommand(ISQLAlias selectedAlias,
13: IApplication app) {
14: _selectedAlias = selectedAlias;
15: _app = app;
16: }
17:
18: public void execute() {
19: // Cast is not so nice, but framework doesn't meet new requirements.
20: AliasPropertiesController.showAliasProperties(_app,
21: (SQLAlias) _selectedAlias);
22: }
23: }
|