1 package com.quantum.actions;
3 import com.quantum.Messages;
4 import com.quantum.QuantumPlugin;
5 import com.quantum.wizards.BookmarkWizard;
7 import org.eclipse.jface.action.Action;
8 import org.eclipse.jface.wizard.WizardDialog;
9 import org.eclipse.ui.IViewPart;
15 public class NewBookmarkAction extends Action {
16 private IViewPart view;
18 public NewBookmarkAction(IViewPart view) {
20 setText(Messages.getString(getClass().getName() + ".text")); //$NON-NLS-1$
21 setToolTipText(Messages.getString(getClass().getName() + ".text")); //$NON-NLS-1$
22 setImageDescriptor(QuantumPlugin.getImageDescriptor("bookmarks.gif")); //$NON-NLS-1$
26 BookmarkWizard wizard = new BookmarkWizard();
29 new WizardDialog(view.getSite().getShell(), wizard);