-// $Id$\r
-/**\r
-* Copyright (C) 2007 EDIT\r
-* European Distributed Institute of Taxonomy \r
-* http://www.e-taxonomy.eu\r
-* \r
-* The contents of this file are subject to the Mozilla Public License Version 1.1\r
-* See LICENSE.TXT at the top of this package for the full license terms.\r
-*/\r
-\r
-package eu.etaxonomy.taxeditor;\r
-\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.ui.IEditorPart;\r
-import org.eclipse.ui.handlers.HandlerUtil;\r
-\r
-/**\r
- * Now handled entirely by native save action. \r
- * \r
- * @author p.ciardelli\r
- * @created 04.09.2009\r
- * @version 1.0\r
- * @deprecated\r
- * @see ApplicationActionBarAdvisor\r
- */\r
-public class SaveHandler extends AbstractHandler {\r
- private static final Logger logger = Logger.getLogger(SaveHandler.class);\r
-\r
- /* (non-Javadoc)\r
- * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)\r
- */\r
- public Object execute(ExecutionEvent event) throws ExecutionException {\r
- IEditorPart editor = HandlerUtil.getActiveEditor(event);\r
- if (editor != null) {\r
- HandlerUtil.getActiveWorkbenchWindow(event).getActivePage().saveEditor(editor, false);\r
- }\r
- return null;\r
- }\r
-}\r
+// $Id$
+/**
+* Copyright (C) 2007 EDIT
+* European Distributed Institute of Taxonomy
+* http://www.e-taxonomy.eu
+*
+* The contents of this file are subject to the Mozilla Public License Version 1.1
+* See LICENSE.TXT at the top of this package for the full license terms.
+*/
+
+package eu.etaxonomy.taxeditor;
+
+import org.apache.log4j.Logger;
+import org.eclipse.core.commands.AbstractHandler;
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.handlers.HandlerUtil;
+
+/**
+ * Now handled entirely by native save action.
+ *
+ * @author p.ciardelli
+ * @created 04.09.2009
+ * @version 1.0
+ * @see ApplicationActionBarAdvisor
+ */
+public class SaveHandler extends AbstractHandler {
+ private static final Logger logger = Logger.getLogger(SaveHandler.class);
+
+ /* (non-Javadoc)
+ * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
+ */
+ /** {@inheritDoc} */
+ public Object execute(ExecutionEvent event) throws ExecutionException {
+ IEditorPart editor = HandlerUtil.getActiveEditor(event);
+ if (editor != null) {
+ HandlerUtil.getActiveWorkbenchWindow(event).getActivePage().saveEditor(editor, false);
+ }
+ return null;
+ }
+}