*** empty log message ***
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / view / bookmark / BookmarkViewActionGroup.java
index 9293770..3af90bd 100644 (file)
@@ -2,7 +2,7 @@ package com.quantum.view.bookmark;
 
 import java.util.Iterator;
 
-import com.quantum.QuantumPlugin;
+import com.quantum.ImageStore;
 import com.quantum.actions.AddToQuickListAction;
 import com.quantum.actions.ConnectAction;
 import com.quantum.actions.DeleteAllRowsAction;
@@ -17,6 +17,7 @@ import com.quantum.actions.RemoveFromQuickListAction;
 import com.quantum.actions.ViewTableAction;
 import com.quantum.actions.ViewTableDetailsAction;
 import com.quantum.model.Bookmark;
+import com.quantum.util.versioning.VersioningHelper;
 
 import org.eclipse.jface.action.Action;
 import org.eclipse.jface.action.IAction;
@@ -56,7 +57,6 @@ public class BookmarkViewActionGroup extends ActionGroup
     private SelectionListenerAction addToQuickListAction;
     private SelectionListenerAction removeFromQuickListAction;
     private SelectionListenerAction viewTableAction;
-    private SelectionListenerAction addSchemaAction;
     private SelectionListenerAction viewTableDetailsAction;
 
     private SelectionListenerAction nextSequenceAction;
@@ -100,14 +100,13 @@ public class BookmarkViewActionGroup extends ActionGroup
         this.openQueryAction = new OpenQueryAction(this.viewPart);
         
         this.viewTableAction = new ViewTableAction(this.viewPart);
-        this.addSchemaAction = new AddSchemaAction(this.viewPart);
         this.refreshAction = new RefreshBookmarkAction(this.viewPart);
         this.renameAction = new RenameAction(this.viewPart);
         this.copyAction = new CopyAction(this.viewPart, this, selectionProvider);
         this.pasteAction = new PasteAction(this.viewPart, this, selectionProvider);
-        this.exportAction = new ExportResourcesAction(
-            this.viewPart.getViewSite().getWorkbenchWindow());
-        this.exportAction.setImageDescriptor(QuantumPlugin.getImageDescriptor("export.gif"));
+        this.exportAction = VersioningHelper.createExportResourcesAction(
+                       this.viewPart.getViewSite().getWorkbenchWindow());
+        this.exportAction.setImageDescriptor(ImageStore.getImageDescriptor(ImageStore.EXPORT));
         
         this.propertiesAction = new PropertyDialogAction(
             this.viewPart.getSite().getShell(), selectionProvider);
@@ -146,14 +145,13 @@ public class BookmarkViewActionGroup extends ActionGroup
 
         // NOTE: In Eclipse 3.0.0 M6, Export is no longer a sub-class of 
         //       SelectionListenerAction.
-        this.exportAction.selectionChanged(getStructuredSelection());
-        menu.add(this.exportAction);
+        if (this.exportAction != null) {
+               this.exportAction.selectionChanged(getStructuredSelection());
+               menu.add(this.exportAction);
+        }
 
         if (getStructuredSelection().size() == 1 && 
             isEverySelectionInstanceof(BookmarkNode.class)) {
-                
-            menu.add(new Separator());
-            addToMenu(menu, this.addSchemaAction);
         }
 
         if (isEverySelectionInstanceof(QueryNode.class)) {