1 package com.quantum.actions;
 
   3 import com.quantum.wizards.ExportBookmarkWizard;
 
   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;
 
  13  * Asks the user for a file name and saves there the bookmarks in xml format 
 
  15 public class ExportBookmarksAction implements IViewActionDelegate {
 
  17         private IViewPart view;
 
  20          * @see org.eclipse.ui.IViewActionDelegate#init(IViewPart)
 
  22         public void init(IViewPart view) {
 
  27          * @see org.eclipse.ui.IActionDelegate#run(IAction)
 
  29         public void run(IAction action) {
 
  31         ExportBookmarkWizard wizard = new ExportBookmarkWizard();
 
  33             new WizardDialog(this.view.getSite().getShell(), wizard);
 
  37          * @see org.eclipse.ui.IActionDelegate#selectionChanged(IAction, ISelection)
 
  39         public void selectionChanged(IAction action, ISelection selection) {