Revision b3fe1135
Added by Patrick Plitzner about 6 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/NewClassificationHandlerE4.java | ||
---|---|---|
12 | 12 |
import javax.inject.Named; |
13 | 13 |
|
14 | 14 |
import org.eclipse.e4.core.di.annotations.Execute; |
15 |
import org.eclipse.e4.core.di.annotations.Optional; |
|
15 | 16 |
import org.eclipse.e4.ui.services.IServiceConstants; |
16 | 17 |
import org.eclipse.jface.viewers.ITreeSelection; |
17 | 18 |
import org.eclipse.jface.wizard.WizardDialog; |
... | ... | |
29 | 30 |
|
30 | 31 |
@Execute |
31 | 32 |
public void execute(@Named(IServiceConstants.ACTIVE_SHELL)Shell shell, |
32 |
@Named(IServiceConstants.ACTIVE_SELECTION)ITreeSelection selection) { |
|
33 |
@Optional@Named(IServiceConstants.ACTIVE_SELECTION)ITreeSelection selection) {
|
|
33 | 34 |
NewClassificationWizard wizard = new NewClassificationWizard(); |
34 | 35 |
wizard.init(null, selection); |
35 | 36 |
WizardDialog dialog = new WizardDialog(shell, wizard); |
Also available in: Unified diff
ref #6909 Fixed handler for creating new classifications