ref #9359 upgrade TaxEditor to log4j2
[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;import org.apache.logging.log4j.Logger;
15 import org.eclipse.e4.core.di.annotations.Execute;
16
17 /**
18 * @author p.ciardelli
19 * @created 04.09.2009
20 */
21 public class OpenExternalAboutPlatformHandler {
22 private static final Logger logger = LogManager.getLogger(OpenExternalAboutPlatformHandler.class);
23
24 @Execute
25 public Object execute() {
26 String url = "https://cybertaxonomy.org/";
27
28 try {
29 WorkbenchUtility.openWebpage(new URL(url));
30 } catch (IOException| RuntimeException e) {
31 logger.error(e);
32 throw new RuntimeException(e);
33 }
34
35 return null;
36 }
37 }