
net.sourceforge.squirrel_sql.client.mainframe.action.AliasAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of squirrel-sql Show documentation
Show all versions of squirrel-sql Show documentation
This is the jar that contains the main application classes which are very specific to
SQuirreLSQL.
package net.sourceforge.squirrel_sql.client.mainframe.action;
import net.sourceforge.squirrel_sql.client.action.SquirrelAction;
import net.sourceforge.squirrel_sql.client.IApplication;
import net.sourceforge.squirrel_sql.client.gui.db.AliasesListInternalFrame;
import net.sourceforge.squirrel_sql.fw.util.log.ILogger;
import net.sourceforge.squirrel_sql.fw.util.log.LoggerController;
import net.sourceforge.squirrel_sql.fw.util.StringManager;
import net.sourceforge.squirrel_sql.fw.util.StringManagerFactory;
import java.beans.PropertyVetoException;
public abstract class AliasAction extends SquirrelAction
{
/** Logger for this class. */
private static ILogger s_log =
LoggerController.createLogger(DeleteAliasAction.class);
/** Internationalized strings for this class. */
private static final StringManager s_stringMgr =
StringManagerFactory.getStringManager(DeleteAliasAction.class);
public AliasAction(IApplication app)
{
super(app);
}
protected void moveToFrontAndSelectAliasFrame()
{
IApplication app = getApplication();
AliasesListInternalFrame tw = app.getWindowManager().getAliasesListInternalFrame();
tw.moveToFront();
try
{
tw.setSelected(true);
}
catch (PropertyVetoException ex)
{
//i18n[DeleteAliasAction.error.selectingwindow=Error selecting window]
s_log.error(s_stringMgr.getString("DeleteAliasAction.error.selectingwindow"), ex);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy