automated build configuration is on its way
[taxeditor.git] / taxeditor-application / src / main / java / eu / etaxonomy / taxeditor / SaveAllHandler.java
1 // $Id$
2 /**
3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10
11 package eu.etaxonomy.taxeditor;
12
13 import org.apache.log4j.Logger;
14 import org.eclipse.core.commands.AbstractHandler;
15 import org.eclipse.core.commands.ExecutionEvent;
16 import org.eclipse.core.commands.ExecutionException;
17 import org.eclipse.ui.handlers.HandlerUtil;
18
19 /**
20 * Now handled entirely by native save action.
21 *
22 * @author p.ciardelli
23 * @created 04.09.2009
24 * @version 1.0
25 * @see ApplicationActionBarAdvisor
26 */
27 public class SaveAllHandler extends AbstractHandler {
28 private static final Logger logger = Logger.getLogger(SaveAllHandler.class);
29
30 /* (non-Javadoc)
31 * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
32 */
33 /** {@inheritDoc} */
34 public Object execute(ExecutionEvent event) throws ExecutionException {
35 HandlerUtil.getActiveWorkbenchWindow(event).getActivePage().saveAllEditors(false);
36 return null;
37 }
38 }