]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.workbench/src/org/simantics/workbench/AboutHandler.java
(refs #7358) Initial 4.7 update commit
[simantics/platform.git] / bundles / org.simantics.workbench / src / org / simantics / workbench / AboutHandler.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
3  * in Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.workbench;
13
14 import org.eclipse.core.commands.AbstractHandler;
15 import org.eclipse.core.commands.ExecutionEvent;
16 import org.eclipse.core.commands.ExecutionException;
17 import org.eclipse.core.commands.IHandler;
18 import org.eclipse.ui.PlatformUI;
19 import org.eclipse.ui.actions.ActionFactory;
20
21 public class AboutHandler extends AbstractHandler implements IHandler {
22
23     @Override
24     public Object execute(ExecutionEvent arg0) throws ExecutionException {
25         ActionFactory.ABOUT.create(PlatformUI.getWorkbench().getActiveWorkbenchWindow()).run();
26         return null;
27     }
28
29 }