1
|
|
2
|
package eu.etaxonomy.taxeditor.editor.workingSet.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.workingSet.WorkingSetNavigator;
|
11
|
|
12
|
public class RefreshWorkingSetNavigatorHandler {
|
13
|
|
14
|
@Execute
|
15
|
public void execute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart) {
|
16
|
if(activePart.getObject() instanceof WorkingSetNavigator){
|
17
|
((WorkingSetNavigator) activePart.getObject()).refresh(true);
|
18
|
}
|
19
|
}
|
20
|
|
21
|
}
|