fixes #1131
authorn.hoffmann <n.hoffmann@localhost>
Tue, 22 Dec 2009 12:20:52 +0000 (12:20 +0000)
committern.hoffmann <n.hoffmann@localhost>
Tue, 22 Dec 2009 12:20:52 +0000 (12:20 +0000)
taxeditor-bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/handler/OpenBulkEditorHandler.java
taxeditor-bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/AgentEditorInput.java
taxeditor-bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/NameEditorInput.java
taxeditor-bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/ReferenceEditorInput.java

index a172c2275bb573b92f6bb55213331590f297c061..62d200d482fed4d3b9bf04b3270a07b05883d6f4 100644 (file)
@@ -8,6 +8,7 @@
 * See LICENSE.TXT at the top of this package for the full license terms.\r
 */\r
 package eu.etaxonomy.taxeditor.bulkeditor.handler;\r
 * See LICENSE.TXT at the top of this package for the full license terms.\r
 */\r
 package eu.etaxonomy.taxeditor.bulkeditor.handler;\r
+import org.apache.log4j.Logger;\r
 import org.eclipse.core.commands.AbstractHandler;\r
 import org.eclipse.core.commands.ExecutionEvent;\r
 import org.eclipse.core.commands.ExecutionException;\r
 import org.eclipse.core.commands.AbstractHandler;\r
 import org.eclipse.core.commands.ExecutionEvent;\r
 import org.eclipse.core.commands.ExecutionException;\r
@@ -24,7 +25,8 @@ import eu.etaxonomy.taxeditor.bulkeditor.input.BulkEditorInput;
  * @version 1.0\r
  */\r
 public class OpenBulkEditorHandler extends AbstractHandler {\r
  * @version 1.0\r
  */\r
 public class OpenBulkEditorHandler extends AbstractHandler {\r
-               \r
+       private static final Logger logger = Logger.getLogger(OpenBulkEditorHandler.class);     \r
+       \r
        /* (non-Javadoc)\r
         * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)\r
         */\r
        /* (non-Javadoc)\r
         * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)\r
         */\r
@@ -34,8 +36,8 @@ public class OpenBulkEditorHandler extends AbstractHandler {
                        HandlerUtil.getActiveWorkbenchWindow(event).getActivePage().\r
                                        openEditor(BulkEditorInput.NewInstance(inputType), BulkEditor.ID);\r
                } catch (PartInitException e) {\r
                        HandlerUtil.getActiveWorkbenchWindow(event).getActivePage().\r
                                        openEditor(BulkEditorInput.NewInstance(inputType), BulkEditor.ID);\r
                } catch (PartInitException e) {\r
-                       // TODO catch\r
-                       e.printStackTrace();\r
+                       new RuntimeException(e);\r
+                       logger.error("Error opening bulk editor", e);\r
                }\r
                return null;\r
        }\r
                }\r
                return null;\r
        }\r
index cc0bc0c077c899672823a10b3fbe8b6f1fa21db0..f8d3d11f7766310b920dce9f873a68be1af649fa 100644 (file)
@@ -39,7 +39,7 @@ public class AgentEditorInput extends BulkEditorInput {
         * @see org.eclipse.ui.IEditorInput#getName()\r
         */\r
        public String getName() {\r
         * @see org.eclipse.ui.IEditorInput#getName()\r
         */\r
        public String getName() {\r
-               return "Bulk Editor - Authors";\r
+               return "Authors";\r
        }\r
 \r
        /* (non-Javadoc)\r
        }\r
 \r
        /* (non-Javadoc)\r
index 04554639105fa84d3979da1c6275560c98794a5b..bf3850c92b418b162c15251eae99ae3bb89ae02f 100644 (file)
@@ -43,7 +43,7 @@ public class NameEditorInput extends BulkEditorInput {
         * @see org.eclipse.ui.IEditorInput#getName()\r
         */\r
        public String getName() {\r
         * @see org.eclipse.ui.IEditorInput#getName()\r
         */\r
        public String getName() {\r
-               return "Bulk Editor - Names";\r
+               return "Names";\r
        }\r
 \r
        /* (non-Javadoc)\r
        }\r
 \r
        /* (non-Javadoc)\r
index 8ae7af30e0f737f9b8df69fef18f1fc1c7293486..b21b48cab0f54ab155cf5330156004350befea52 100644 (file)
@@ -41,7 +41,7 @@ public class ReferenceEditorInput extends BulkEditorInput {
         * @see org.eclipse.ui.IEditorInput#getName()\r
         */\r
        public String getName() {\r
         * @see org.eclipse.ui.IEditorInput#getName()\r
         */\r
        public String getName() {\r
-               return "Bulk Editor - References";\r
+               return "References";\r
        }\r
 \r
        /* (non-Javadoc)\r
        }\r
 \r
        /* (non-Javadoc)\r