A little bug in the tostring method fixed
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.sql / src / net / sourceforge / phpdt / sql / actions / DisconnectAction.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.BookmarkView;
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 DisconnectAction extends Action implements IViewActionDelegate {
20         BookmarkView view;
21         /**
22          * @see org.eclipse.ui.IViewActionDelegate#init(IViewPart)
23          */
24         public void init(IViewPart view) {
25                 this.view = (BookmarkView) view;
26         }
27
28         /**
29          * @see org.eclipse.ui.IActionDelegate#run(IAction)
30          */
31         public void run(IAction action) {
32                 run();
33         }
34         
35         public void run() {
36                 view.disconnect();
37         }
38
39         /**
40          * @see org.eclipse.ui.IActionDelegate#selectionChanged(IAction, ISelection)
41          */
42         public void selectionChanged(IAction action, ISelection selection) {
43         }
44
45 }