performed javacscript:fix and worked on documentation
[taxeditor.git] / taxeditor-editor / src / main / java / eu / etaxonomy / taxeditor / editor / handler / SaveAllHandler.java
index 17517886a0906c0781bed5631cb863b29b8b0b83..e41228fa823321c4eca9f612c6d0c9dd90ccea9a 100644 (file)
@@ -1,48 +1,51 @@
-/**\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.editor.handler;\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.core.commands.IHandler;\r
-import org.eclipse.ui.IEditorPart;\r
-\r
-import eu.etaxonomy.taxeditor.editor.EditorUtil;\r
-\r
-/**\r
- * @author n.hoffmann\r
- * @created 06.02.2009\r
- * @version 1.0\r
- */\r
-public class SaveAllHandler extends AbstractHandler implements IHandler {\r
-       private static final Logger logger = Logger.getLogger(SaveAllHandler.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
-               logger.debug("Handler called: " + this.getClass().getCanonicalName());\r
-               \r
-               // TODO what is this for?\r
-               EditorUtil.setSaving(true);\r
-               \r
-               for (IEditorPart editor : EditorUtil.getOpenEditors()) {\r
-                       if (editor.isDirty()) {\r
-                               editor.doSave(null);\r
-                       }\r
-               }\r
-               \r
-               EditorUtil.setSaving(false);\r
-               // TODO: delete undoHistory\r
-               return null;\r
-       }\r
-}\r
+/**
+* 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.editor.handler;
+
+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.core.commands.IHandler;
+import org.eclipse.ui.IEditorPart;
+
+import eu.etaxonomy.taxeditor.editor.EditorUtil;
+
+/**
+ * <p>SaveAllHandler class.</p>
+ *
+ * @author n.hoffmann
+ * @created 06.02.2009
+ * @version 1.0
+ */
+public class SaveAllHandler extends AbstractHandler implements IHandler {
+       private static final Logger logger = Logger.getLogger(SaveAllHandler.class);
+
+       /* (non-Javadoc)
+        * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
+        */
+       /** {@inheritDoc} */
+       public Object execute(ExecutionEvent event) throws ExecutionException {
+               logger.debug("Handler called: " + this.getClass().getCanonicalName());
+               
+               // TODO what is this for?
+               EditorUtil.setSaving(true);
+               
+               for (IEditorPart editor : EditorUtil.getOpenEditors()) {
+                       if (editor.isDirty()) {
+                               editor.doSave(null);
+                       }
+               }
+               
+               EditorUtil.setSaving(false);
+               // TODO: delete undoHistory
+               return null;
+       }
+}