Project

General

Profile

Download (1.55 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.taxeditor.bulkeditor.handler;
10
import org.apache.log4j.Logger;
11
import org.eclipse.core.commands.AbstractHandler;
12
import org.eclipse.core.commands.ExecutionEvent;
13
import org.eclipse.core.commands.ExecutionException;
14

    
15
import eu.etaxonomy.taxeditor.bulkeditor.IBulkEditorConstants;
16
import eu.etaxonomy.taxeditor.bulkeditor.input.BulkEditorInputType;
17

    
18
/**
19
 * <p>OpenBulkEditorHandler class.</p>
20
 *
21
 * @author p.ciardelli
22
 * @created 25.06.2009
23
 * @version 1.0
24
 */
25
public class OpenBulkEditorHandler extends AbstractHandler {
26
	private static final Logger logger = Logger.getLogger(OpenBulkEditorHandler.class);
27

    
28
	/* (non-Javadoc)
29
	 * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
30
	 */
31
	/** {@inheritDoc} */
32
	@Override
33
    public Object execute(ExecutionEvent event) throws ExecutionException {
34
		String inputTypeId = event.getParameter(IBulkEditorConstants.INPUT_TYPE_PARAMETER_ID);
35
		BulkEditorInputType inputType = BulkEditorInputType.getById(inputTypeId);
36
//		try {
37
//			HandlerUtil.getActiveWorkbenchWindow(event).getActivePage().
38
//					openEditor(AbstractBulkEditorInput.NewInstance(inputType), BulkEditor.ID);
39
//		} catch (PartInitException e) {
40
//			new RuntimeException(e);
41
//			logger.error("Error opening bulk editor", e);
42
//		}
43
		return null;
44
	}
45
}
(6-6/10)