1 package com.quantum.view.tableview;
3 import java.sql.SQLException;
5 import com.quantum.ImageStore;
6 import com.quantum.Messages;
7 import com.quantum.sql.SQLResultSetResults;
9 import org.eclipse.jface.viewers.ISelectionProvider;
10 import org.eclipse.ui.IViewPart;
13 * Implements the "Refresh Table" action for the TableView view
17 public class RefreshTableAction extends ResultSetAction {
21 * @param selectionProvider
23 public RefreshTableAction(IViewPart view, ISelectionProvider selectionProvider) {
24 super(view, selectionProvider);
25 setText(Messages.getString(getClass(), "text"));
26 setImageDescriptor(ImageStore.getImageDescriptor(ImageStore.REFRESH));
27 setToolTipText(Messages.getString(getClass(), "text"));
30 protected void executeResultSetAction(SQLResultSetResults results) throws SQLException {
31 results.refresh(getConnection(results));