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;
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;
private SelectionListenerAction addToQuickListAction;
private SelectionListenerAction removeFromQuickListAction;
private SelectionListenerAction viewTableAction;
- private SelectionListenerAction addSchemaAction;
private SelectionListenerAction viewTableDetailsAction;
private SelectionListenerAction nextSequenceAction;
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);
// 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)) {