1) Added handling of conditional breakpoint to addBreakoint method.
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / actions / ExportBookmarksAction.java
1 package com.quantum.actions;
2
3 import com.quantum.wizards.ExportBookmarkWizard;
4
5 import org.eclipse.jface.action.IAction;
6 import org.eclipse.jface.viewers.ISelection;
7 import org.eclipse.jface.wizard.WizardDialog;
8 import org.eclipse.ui.IViewActionDelegate;
9 import org.eclipse.ui.IViewPart;
10
11 /**
12  * @author root
13  * Asks the user for a file name and saves there the bookmarks in xml format 
14  */
15 public class ExportBookmarksAction implements IViewActionDelegate {
16                 
17         private IViewPart view;
18
19         /**
20          * @see org.eclipse.ui.IViewActionDelegate#init(IViewPart)
21          */
22         public void init(IViewPart view) {
23                 this.view = view;               
24         }
25
26         /**
27          * @see org.eclipse.ui.IActionDelegate#run(IAction)
28          */
29         public void run(IAction action) {
30         
31         ExportBookmarkWizard wizard = new ExportBookmarkWizard();
32         WizardDialog dialog =
33             new WizardDialog(this.view.getSite().getShell(), wizard);
34         dialog.open();
35         }
36         /**
37          * @see org.eclipse.ui.IActionDelegate#selectionChanged(IAction, ISelection)
38          */
39         public void selectionChanged(IAction action, ISelection selection) {
40         }
41
42 }