shortened display text of variable proposal in content assist
[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  * 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 }