Mockup with Master-Details page.
[taxeditor.git] / src / eu / etaxonomy / taxeditor / OpenViewAction.java
index 3c617dbeb39dc8f7e21d709e6036fcc8d5fa0c61..6c985cf697dd88e131ef3e05001320916955fa00 100644 (file)
@@ -6,7 +6,6 @@ import org.eclipse.ui.IWorkbenchPage;
 import org.eclipse.ui.IWorkbenchWindow;
 import org.eclipse.ui.PartInitException;
 
-
 public class OpenViewAction extends Action {
        
        private final IWorkbenchWindow window;
@@ -14,17 +13,19 @@ public class OpenViewAction extends Action {
        private final String viewId;
        
        public OpenViewAction(IWorkbenchWindow window, String label, String viewId) {
+               
                this.window = window;
                this.viewId = viewId;
-        setText(label);
+        setText(label); //Open Another Message View
         // The id is used to refer to the action in a menu or toolbar
                setId(ICommandIds.CMD_OPEN);
         // Associate the action with a pre-defined command, to allow key bindings.
                setActionDefinitionId(ICommandIds.CMD_OPEN);
-               setImageDescriptor(eu.etaxonomy.taxeditor.Activator.getImageDescriptor("/icons/sample2.gif"));
+               setImageDescriptor(Activator.getImageDescriptorOrig("/icons/sample2.gif"));
        }
        
        public void run() {
+               
                if(window != null) {    
                        try {
                                window.getActivePage().showView(viewId, Integer.toString(instanceNum++), IWorkbenchPage.VIEW_ACTIVATE);