Project

General

Profile

« Previous | Next » 

Revision d31115e0

Added by Niels Hoffmann over 13 years ago

added a readme file

View differences:

taxeditor-navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/handler/EditHandler.java
25 25
import org.eclipse.ui.handlers.HandlerUtil;
26 26

  
27 27
import eu.etaxonomy.cdm.model.common.CdmBase;
28
import eu.etaxonomy.cdm.model.taxon.TaxonomicTree;
28
import eu.etaxonomy.cdm.model.taxon.Classification;
29 29
import eu.etaxonomy.taxeditor.navigation.NavigationUtil;
30 30
import eu.etaxonomy.taxeditor.wizard.ClassificationWizard;
31 31

  
......
49 49
		if(selection instanceof StructuredSelection){
50 50
			final StructuredSelection structuredSelection = (StructuredSelection) selection;
51 51
			
52
			if(structuredSelection.size() == 1 && structuredSelection.getFirstElement() instanceof TaxonomicTree){
53
				ClassificationWizard classificationWizard = new ClassificationWizard((TaxonomicTree) structuredSelection.getFirstElement());
52
			if(structuredSelection.size() == 1 && structuredSelection.getFirstElement() instanceof Classification){
53
				ClassificationWizard classificationWizard = new ClassificationWizard((Classification) structuredSelection.getFirstElement());
54 54
				
55 55
				WizardDialog dialog = new WizardDialog(HandlerUtil.getActiveShell(event), classificationWizard);
56 56
				dialog.open();

Also available in: Unified diff