Changed gather.bin target to include all resources
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.sql / src / net / sourceforge / phpdt / sql / actions / NewBookmarkAction.java
1 package net.sourceforge.phpdt.sql.actions;
2
3 import net.sourceforge.phpdt.sql.IConstants;
4 import net.sourceforge.phpdt.sql.wizards.BookmarkWizard;
5
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;
12
13 /**
14  * @author root
15  *
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.
20  */
21 public class NewBookmarkAction extends Action implements IViewActionDelegate, IConstants {
22    IViewPart view;
23         /**
24          * @see org.eclipse.ui.IViewActionDelegate#init(IViewPart)
25          */
26         public void init(IViewPart view) {
27                 this.view = view;
28                 
29         }
30
31         /**
32          * @see org.eclipse.ui.IActionDelegate#run(IAction)
33          */
34         public void run(IAction action) {
35                 run();
36         }
37         public void run() {
38     if (DEBUG) {
39                 System.out.println("Wizard..");
40     }
41                 BookmarkWizard wizard = new BookmarkWizard();
42                 
43                 wizard.init();
44                 
45                 WizardDialog dialog = new WizardDialog (view.getSite().getShell(),wizard); 
46                 dialog.open();
47                 
48         }
49
50         /**
51          * @see org.eclipse.ui.IActionDelegate#selectionChanged(IAction, ISelection)
52          */
53         public void selectionChanged(IAction action, ISelection selection) {
54         }
55
56 }