1 package net.sourceforge.phpdt.sql.actions;
3 import net.sourceforge.phpdt.sql.IConstants;
4 import net.sourceforge.phpdt.sql.view.BookmarkView;
5 import net.sourceforge.phpdt.sql.view.bookmark.BookmarkNode;
6 import net.sourceforge.phpdt.sql.wizards.BookmarkWizard;
8 import org.eclipse.jface.action.Action;
9 import org.eclipse.jface.action.IAction;
10 import org.eclipse.jface.viewers.ISelection;
11 import org.eclipse.jface.wizard.WizardDialog;
12 import org.eclipse.ui.IViewActionDelegate;
13 import org.eclipse.ui.IViewPart;
18 * To change this generated comment edit the template variable "typecomment":
19 * Window>Preferences>Java>Templates.
20 * To enable and disable the creation of type comments go to
21 * Window>Preferences>Java>Code Generation.
23 public class EditBookmarkAction extends Action implements IViewActionDelegate, IConstants {
26 * @see org.eclipse.ui.IViewActionDelegate#init(IViewPart)
28 public void init(IViewPart view) {
34 * @see org.eclipse.ui.IActionDelegate#run(IAction)
36 public void run(IAction action) {
41 System.out.println("Wizard..");
43 BookmarkWizard wizard = new BookmarkWizard();
45 BookmarkNode b = BookmarkView.getInstance().getCurrentBookmark();
47 WizardDialog dialog = new WizardDialog (view.getSite().getShell(),wizard);
53 * @see org.eclipse.ui.IActionDelegate#selectionChanged(IAction, ISelection)
55 public void selectionChanged(IAction action, ISelection selection) {