Project

General

Profile

« Previous | Next » 

Revision 35c85fae

Added by Patrick Plitzner over 6 years ago

ref #6909 Propagate TreeSelection

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/NewClassificationHandlerE4.java
13 13

  
14 14
import org.eclipse.e4.core.di.annotations.Execute;
15 15
import org.eclipse.e4.ui.services.IServiceConstants;
16
import org.eclipse.jface.viewers.ITreeSelection;
16 17
import org.eclipse.jface.wizard.WizardDialog;
17 18
import org.eclipse.swt.widgets.Shell;
18 19

  
......
27 28
public class NewClassificationHandlerE4 {
28 29

  
29 30
    @Execute
30
    public void execute(@Named(IServiceConstants.ACTIVE_SHELL)Shell shell) {
31
    public void execute(@Named(IServiceConstants.ACTIVE_SHELL)Shell shell,
32
            @Named(IServiceConstants.ACTIVE_SELECTION)ITreeSelection selection) {
31 33
		NewClassificationWizard wizard = new NewClassificationWizard();
32
		wizard.init(null, null);
34
		wizard.init(null, selection);
33 35
		WizardDialog dialog = new WizardDialog(shell, wizard);
34 36
		dialog.open();
35 37
	}

Also available in: Unified diff