
net.sourceforge.squirrel_sql.client.session.action.CloseAllSQLResultTabsButCurrentAction 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.session.action;
import net.sourceforge.squirrel_sql.client.IApplication;
import net.sourceforge.squirrel_sql.client.action.SquirrelAction;
import net.sourceforge.squirrel_sql.client.session.ISQLPanelAPI;
import java.awt.event.ActionEvent;
public class CloseAllSQLResultTabsButCurrentAction extends SquirrelAction
implements ISQLPanelAction
{
/** Current panel. */
private ISQLPanelAPI _panel;
/**
* Ctor specifying Application API.
*
* @param app Application API.
*/
public CloseAllSQLResultTabsButCurrentAction(IApplication app)
{
super(app);
}
public void setSQLPanel(ISQLPanelAPI panel)
{
_panel = panel;
setEnabled(null != _panel);
}
/**
* Display the previous results tab.
*
* @param evt Event being executed.
*/
public synchronized void actionPerformed(ActionEvent evt)
{
if (_panel != null)
{
_panel.closeAllButCurrentResultTabs();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy