Made the help plugin 3.x compatible
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / actions / RefreshTableAction.java
1 package com.quantum.actions;
2
3 import com.quantum.view.tableview.TableView;
4
5 import org.eclipse.jface.action.Action;
6 import org.eclipse.jface.action.IAction;
7 import org.eclipse.jface.viewers.ISelection;
8 import org.eclipse.ui.IViewActionDelegate;
9 import org.eclipse.ui.IViewPart;
10
11 /**
12  * @author root
13  * Implements the "Refresh Table" action for the TableView view
14  */
15 public class RefreshTableAction extends Action implements IViewActionDelegate {
16         TableView view;
17         /**
18          * @see org.eclipse.ui.IViewActionDelegate#init(IViewPart)
19          */
20         public void init(IViewPart view) {
21                 this.view = (TableView) view;
22         }
23
24         /**
25          * @see org.eclipse.ui.IActionDelegate#run(IAction)
26          */
27         public void run(IAction action) {
28                 run();
29         }
30         public void run() {
31                 view.refreshCurrent();
32         }
33
34         /**
35          * @see org.eclipse.ui.IActionDelegate#selectionChanged(IAction, ISelection)
36          */
37         public void selectionChanged(IAction action, ISelection selection) {
38         }
39
40 }