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.jface.wizard.WizardDialog;
7 import org.eclipse.ui.IViewActionDelegate;
8 import org.eclipse.ui.IViewPart;
10 import net.sourceforge.phpdt.sql.view.BookmarkView;
11 import net.sourceforge.phpdt.sql.view.bookmark.BookmarkNode;
12 import net.sourceforge.phpdt.sql.wizards.BookmarkWizard;
17 * To change this generated comment edit the template variable "typecomment":
18 * Window>Preferences>Java>Templates.
19 * To enable and disable the creation of type comments go to
20 * Window>Preferences>Java>Code Generation.
22 public class EditBookmarkAction extends Action implements IViewActionDelegate {
25 * @see org.eclipse.ui.IViewActionDelegate#init(IViewPart)
27 public void init(IViewPart view) {
33 * @see org.eclipse.ui.IActionDelegate#run(IAction)
35 public void run(IAction action) {
39 System.out.println("Wizard..");
40 BookmarkWizard wizard = new BookmarkWizard();
42 BookmarkNode b = BookmarkView.getInstance().getCurrentBookmark();
44 WizardDialog dialog = new WizardDialog (view.getSite().getShell(),wizard);
50 * @see org.eclipse.ui.IActionDelegate#selectionChanged(IAction, ISelection)
52 public void selectionChanged(IAction action, ISelection selection) {