Project

General

Profile

« Previous | Next » 

Revision c4dcde9b

Added by Niels Hoffmann about 12 years ago

Removed all calls to active menu selection (fixes #1106)

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/handler/ChangeSynonymToAcceptedTaxonHandler.java
63 63
		}
64 64

  
65 65
		// Get synonym from selection
66
		StructuredSelection selection = (StructuredSelection) HandlerUtil.getActiveMenuSelection(event);
66
		StructuredSelection selection = (StructuredSelection) HandlerUtil.getCurrentSelection(event);
67 67
		if (!(selection.getFirstElement() instanceof Synonym)) {
68 68
			logger.error("Selection does not contain a Synonym");
69 69
			return null;

Also available in: Unified diff