1 package net.sourceforge.phpdt.sql.actions;
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;
9 import net.sourceforge.phpdt.sql.view.BookmarkView;
13 * Disconnects from the database
15 public class DisconnectAction extends Action implements IViewActionDelegate {
18 * @see org.eclipse.ui.IViewActionDelegate#init(IViewPart)
20 public void init(IViewPart view) {
21 this.view = (BookmarkView) view;
25 * @see org.eclipse.ui.IActionDelegate#run(IAction)
27 public void run(IAction action) {
36 * @see org.eclipse.ui.IActionDelegate#selectionChanged(IAction, ISelection)
38 public void selectionChanged(IAction action, ISelection selection) {