package com.quantum.view.bookmark;
-import com.quantum.Messages;
-import com.quantum.QuantumPlugin;
-import com.quantum.model.Bookmark;
-import com.quantum.model.BookmarkCollection;
-
import org.eclipse.jface.viewers.ISelectionProvider;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.IViewPart;
import org.eclipse.ui.actions.SelectionListenerAction;
+import com.quantum.ImageStore;
+import com.quantum.Messages;
+import com.quantum.model.Bookmark;
+import com.quantum.model.BookmarkCollection;
+
final class PasteAction extends SelectionListenerAction {
- private IViewPart view;
private BookmarkClipboard bookmarkClipboard;
/**
* @param BookmarkView
public PasteAction(IViewPart view, BookmarkClipboard bookmarkClipboard,
ISelectionProvider selectionProvider) {
super(Messages.getString(PasteAction.class.getName() + ".text"));
- setImageDescriptor(QuantumPlugin.getImageDescriptor("paste.gif"));
- this.view = view;
+ setImageDescriptor(ImageStore.getImageDescriptor(ImageStore.PASTE));
selectionProvider.addSelectionChangedListener(this);
this.bookmarkClipboard = bookmarkClipboard;
}