ref #7589 Only allow one single default taxon description per taxon
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / descriptiveDataSet / handler / RefreshDescriptiveDataSetNavigatorHandler.java
1
2 package eu.etaxonomy.taxeditor.editor.descriptiveDataSet.handler;
3
4 import javax.inject.Named;
5
6 import org.eclipse.e4.core.di.annotations.Execute;
7 import org.eclipse.e4.ui.model.application.ui.basic.MPart;
8 import org.eclipse.e4.ui.services.IServiceConstants;
9
10 import eu.etaxonomy.taxeditor.editor.descriptiveDataSet.DescriptiveDataSetNavigator;
11
12 public class RefreshDescriptiveDataSetNavigatorHandler {
13
14 @Execute
15 public void execute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart) {
16 if(activePart.getObject() instanceof DescriptiveDataSetNavigator){
17 ((DescriptiveDataSetNavigator) activePart.getObject()).refresh(true);
18 }
19 }
20
21 }