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.wizards.BookmarkWizard;
15 * To change this generated comment edit the template variable "typecomment":
16 * Window>Preferences>Java>Templates.
17 * To enable and disable the creation of type comments go to
18 * Window>Preferences>Java>Code Generation.
20 public class NewBookmarkAction extends Action implements IViewActionDelegate {
23 * @see org.eclipse.ui.IViewActionDelegate#init(IViewPart)
25 public void init(IViewPart view) {
31 * @see org.eclipse.ui.IActionDelegate#run(IAction)
33 public void run(IAction action) {
37 System.out.println("Wizard.."); //$NON-NLS-1$
38 BookmarkWizard wizard = new BookmarkWizard();
42 WizardDialog dialog = new WizardDialog (view.getSite().getShell(),wizard);
48 * @see org.eclipse.ui.IActionDelegate#selectionChanged(IAction, ISelection)
50 public void selectionChanged(IAction action, ISelection selection) {