Project

General

Profile

Download (646 Bytes) Statistics
| Branch: | Tag: | Revision:
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
}
(6-6/6)