added requirement for JRE 1.4.x or higher
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.sql / src / net / sourceforge / phpdt / sql / actions / RefreshTableAction.java
1 package net.sourceforge.phpdt.sql.actions;
2
3 import org.eclipse.jface.action.Action;
4 import org.eclipse.jface.action.IAction;
5 import org.eclipse.jface.viewers.ISelection;
6 import org.eclipse.ui.IViewActionDelegate;
7 import org.eclipse.ui.IViewPart;
8
9 import net.sourceforge.phpdt.sql.view.TableView;
10
11 /**
12  * @author root
13  *
14  * To change this generated comment edit the template variable "typecomment":
15  * Window>Preferences>Java>Templates.
16  * To enable and disable the creation of type comments go to
17  * Window>Preferences>Java>Code Generation.
18  */
19 public class RefreshTableAction extends Action implements IViewActionDelegate {
20         TableView view;
21         /**
22          * @see org.eclipse.ui.IViewActionDelegate#init(IViewPart)
23          */
24         public void init(IViewPart view) {
25                 this.view = (TableView) view;
26         }
27
28         /**
29          * @see org.eclipse.ui.IActionDelegate#run(IAction)
30          */
31         public void run(IAction action) {
32                 run();
33         }
34         public void run() {
35                 view.refreshCurrent();
36         }
37
38         /**
39          * @see org.eclipse.ui.IActionDelegate#selectionChanged(IAction, ISelection)
40          */
41         public void selectionChanged(IAction action, ISelection selection) {
42         }
43
44 }