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;
19 public class EditBookmarkAction extends Action implements IViewActionDelegate {
22 * @see org.eclipse.ui.IViewActionDelegate#init(IViewPart)
24 public void init(IViewPart view) {
30 * @see org.eclipse.ui.IActionDelegate#run(IAction)
32 public void run(IAction action) {
36 System.out.println("Wizard.."); //$NON-NLS-1$
37 BookmarkWizard wizard = new BookmarkWizard();
39 BookmarkNode b = BookmarkView.getInstance().getCurrentBookmark();
41 WizardDialog dialog = new WizardDialog (view.getSite().getShell(),wizard);
47 * @see org.eclipse.ui.IActionDelegate#selectionChanged(IAction, ISelection)
49 public void selectionChanged(IAction action, ISelection selection) {