1 package com.quantum.actions;
3 import java.util.Iterator;
6 import com.quantum.Messages;
7 import com.quantum.QuantumPlugin;
8 import com.quantum.sql.SQLHelper;
9 import com.quantum.view.bookmark.BookmarkView;
10 import com.quantum.view.bookmark.TreeNode;
12 import org.eclipse.ui.IViewPart;
13 import org.eclipse.ui.actions.SelectionListenerAction;
18 public class RefreshBookmarkAction extends SelectionListenerAction {
19 SQLHelper helper = new SQLHelper();
22 public RefreshBookmarkAction(IViewPart view) {
23 super(Messages.getString(RefreshBookmarkAction.class.getName() + ".text"));
24 this.view = (BookmarkView) view;
25 setImageDescriptor(QuantumPlugin.getImageDescriptor("refresh.gif"));
29 List list = getSelectedNonResources();
30 for (Iterator i = list.iterator(); i.hasNext(); ) {
31 Object object = i.next();
32 if (object != null && object instanceof TreeNode) {
33 ((TreeNode) object).reload();