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.Messages;
+import com.quantum.QuantumPlugin;
+import com.quantum.model.Bookmark;
+import com.quantum.model.BookmarkCollection;
+
final class PasteAction extends SelectionListenerAction {
- private IViewPart view;
private BookmarkClipboard bookmarkClipboard;
/**
* @param BookmarkView
ISelectionProvider selectionProvider) {
super(Messages.getString(PasteAction.class.getName() + ".text"));
setImageDescriptor(QuantumPlugin.getImageDescriptor("paste.gif"));
- this.view = view;
selectionProvider.addSelectionChangedListener(this);
this.bookmarkClipboard = bookmarkClipboard;
}