Project

General

Profile

Download (1.26 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

    
10
package eu.etaxonomy.taxeditor;
11

    
12
import java.io.IOException;
13
import java.net.URL;
14

    
15
import org.apache.log4j.Logger;
16
import org.eclipse.core.commands.AbstractHandler;
17
import org.eclipse.core.commands.ExecutionEvent;
18
import org.eclipse.core.commands.ExecutionException;
19

    
20
import eu.etaxonomy.taxeditor.workbench.WorkbenchUtility;
21

    
22
/**
23
 * <p>OpenExternalHelpHandler class.</p>
24
 *
25
 * @author p.ciardelli
26
 * @created 04.09.2009
27
 * @version 1.0
28
 */
29
public class OpenExternalHelpHandler extends AbstractHandler {
30
	private static final Logger logger = Logger.getLogger(OpenExternalHelpHandler.class);
31

    
32
	/** {@inheritDoc} */
33
	@Override
34
    public Object execute(ExecutionEvent event) throws ExecutionException {
35
		String url = "http://wp5.e-taxonomy.eu/download/taxeditor/stable/EDITTaxonomicEditor-UserManual.pdf";
36

    
37
		try {
38
            WorkbenchUtility.openWebpage(new URL(url));
39
        } catch (IOException| RuntimeException e) {
40
            logger.error(e);
41
            throw new RuntimeException(e);
42
        }
43

    
44
		return null;
45
	}
46
}
(7-7/8)