Project

General

Profile

« Previous | Next » 

Revision 5559c1b5

Added by Patrick Plitzner about 7 years ago

ref #6566 Migrate org.eclipse.ui.main.menu.file menu

  • Also migrate two help handlers

View differences:

eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/OpenExternalAboutPlatformHandler.java
1 1
/**
2 2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
3
* European Distributed Institute of Taxonomy
4 4
* http://www.e-taxonomy.eu
5
* 
5
*
6 6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
* See LICENSE.TXT at the top of this package for the full license terms.
8 8
*/
......
13 13
import java.net.URL;
14 14

  
15 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;
16
import org.eclipse.e4.core.di.annotations.Execute;
19 17
import org.eclipse.ui.PartInitException;
20 18
import org.eclipse.ui.PlatformUI;
21 19
import org.eclipse.ui.browser.IWorkbenchBrowserSupport;
22 20

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

  
33
	/* (non-Javadoc)
34
	 * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
35
	 */
36
	/** {@inheritDoc} */
37
	public Object execute(ExecutionEvent event) throws ExecutionException {
29

  
30
	@Execute
31
	public Object execute() {
38 32
		String url = "http://wp5.e-taxonomy.eu/";
39 33

  
40 34
		try {

Also available in: Unified diff