cleanup
[taxeditor.git] / eu.etaxonomy.taxeditor.workbench / src / main / java / eu / etaxonomy / taxeditor / workbench / OpenExternalAboutPlatformHandler.java
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.workbench;
10
11 import java.io.IOException;
12 import java.net.URL;
13
14 import org.apache.logging.log4j.LogManager;
15 import org.apache.logging.log4j.Logger;
16 import org.eclipse.e4.core.di.annotations.Execute;
17
18 /**
19 * @author p.ciardelli
20 * @created 04.09.2009
21 */
22 public class OpenExternalAboutPlatformHandler {
23 private static final Logger logger = LogManager.getLogger();
24
25 @Execute
26 public Object execute() {
27 String url = "https://cybertaxonomy.org/";
28
29 try {
30 WorkbenchUtility.openWebpage(new URL(url));
31 } catch (IOException| RuntimeException e) {
32 logger.error(e);
33 throw new RuntimeException(e);
34 }
35
36 return null;
37 }
38 }