Project

General

Profile

Download (1.24 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.view.datasource.handler;
11

    
12
import org.eclipse.core.commands.ExecutionEvent;
13
import org.eclipse.core.runtime.IStatus;
14
import org.eclipse.jface.wizard.WizardDialog;
15
import org.eclipse.swt.widgets.Shell;
16
import org.eclipse.ui.handlers.HandlerUtil;
17

    
18
import eu.etaxonomy.taxeditor.datasource.wizard.CdmDataSourceWizard;
19

    
20
/**
21
 * <p>CreateDataSourceHandler class.</p>
22
 *
23
 * @author n.hoffmann
24
 * @created 15.04.2009
25
 * @version 1.0
26
 */
27
public class CreateDataSourceHandler extends AbstractDataSourceHandler {
28

    
29
	/* (non-Javadoc)
30
	 * @see eu.etaxonomy.taxeditor.store.datasource.handler.AbstractDataSourceHandler#specificExecute(org.eclipse.core.commands.ExecutionEvent)
31
	 */
32
	/** {@inheritDoc} */
33
	@Override
34
	public boolean specificExecute(ExecutionEvent event) {
35
		Shell shell = HandlerUtil.getActiveShell(event);
36
		CdmDataSourceWizard wizard = new CdmDataSourceWizard(); 
37
		
38
		WizardDialog dialog = new WizardDialog(shell, wizard);
39
	    		
40
		return dialog.open() == IStatus.OK;
41
	}
42
}
(4-4/8)