1 package com.quantum.actions;
3 import com.quantum.ImageStore;
4 import com.quantum.Messages;
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(), "text")); //$NON-NLS-1$
21 setToolTipText(Messages.getString(getClass(), "text")); //$NON-NLS-1$
22 setImageDescriptor(ImageStore.getImageDescriptor(ImageStore.BOOKMARK));
26 BookmarkWizard wizard = new BookmarkWizard();
29 new WizardDialog(view.getSite().getShell(), wizard);