1
|
/**
|
2
|
* Copyright (C) 2007 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
|
10
|
package eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.handler;
|
11
|
|
12
|
import javax.inject.Named;
|
13
|
|
14
|
import org.eclipse.e4.core.di.annotations.Execute;
|
15
|
import org.eclipse.e4.ui.model.application.ui.basic.MPart;
|
16
|
import org.eclipse.e4.ui.services.IServiceConstants;
|
17
|
|
18
|
import eu.etaxonomy.taxeditor.navigation.key.polytomous.e4.PolytomousKeyViewPartE4;
|
19
|
|
20
|
|
21
|
/**
|
22
|
* <p>Handler class which Refreshes each key node in the polytomous key navigation view</p>
|
23
|
*
|
24
|
* @author c.mathew
|
25
|
* @created Jan 17 2013
|
26
|
* @version 1.0
|
27
|
*/
|
28
|
public class RefreshPolytomousKeyListHandlerE4 {
|
29
|
|
30
|
@Execute
|
31
|
public void execute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart) {
|
32
|
PolytomousKeyViewPartE4 view = (PolytomousKeyViewPartE4) activePart.getObject();
|
33
|
view.refresh();
|
34
|
}
|
35
|
}
|
36
|
|