1 package net.sourceforge.phpdt.sql.actions;
3 import net.sourceforge.phpdt.sql.IConstants;
4 import net.sourceforge.phpdt.sql.wizards.BookmarkWizard;
6 import org.eclipse.jface.action.Action;
7 import org.eclipse.jface.action.IAction;
8 import org.eclipse.jface.viewers.ISelection;
9 import org.eclipse.jface.wizard.WizardDialog;
10 import org.eclipse.ui.IViewActionDelegate;
11 import org.eclipse.ui.IViewPart;
16 * To change this generated comment edit the template variable "typecomment":
17 * Window>Preferences>Java>Templates.
18 * To enable and disable the creation of type comments go to
19 * Window>Preferences>Java>Code Generation.
21 public class NewBookmarkAction extends Action implements IViewActionDelegate, IConstants {
24 * @see org.eclipse.ui.IViewActionDelegate#init(IViewPart)
26 public void init(IViewPart view) {
32 * @see org.eclipse.ui.IActionDelegate#run(IAction)
34 public void run(IAction action) {
39 System.out.println("Wizard..");
41 BookmarkWizard wizard = new BookmarkWizard();
45 WizardDialog dialog = new WizardDialog (view.getSite().getShell(),wizard);
51 * @see org.eclipse.ui.IActionDelegate#selectionChanged(IAction, ISelection)
53 public void selectionChanged(IAction action, ISelection selection) {