show HTML files as local resources (no 'http://' url prefix)
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / actions / ViewTableAction.java
index 6da4e9f..91b9916 100644 (file)
@@ -1,7 +1,7 @@
 package com.quantum.actions;
 
+import com.quantum.ImageStore;
 import com.quantum.Messages;
-import com.quantum.QuantumPlugin;
 import com.quantum.model.Entity;
 import com.quantum.view.bookmark.EntityNode;
 import com.quantum.view.tableview.TableView;
@@ -15,14 +15,12 @@ import org.eclipse.ui.actions.SelectionListenerAction;
  * Implements action for "View Table"
 */
 public class ViewTableAction extends SelectionListenerAction {
-    private IViewPart view;
     private Entity entity;
     
        public ViewTableAction(IViewPart view) {
-        super(Messages.getString(ViewTableAction.class.getName() + ".text"));
-               this.view = view;
+        super(Messages.getString(ViewTableAction.class, "text"));
         setImageDescriptor(
-            QuantumPlugin.getImageDescriptor("table.gif")); //$NON-NLS-1$
+                       ImageStore.getImageDescriptor(ImageStore.OPEN_TABLE));
        }
 
        public void run() {