Revision f13a970a
Added by Patrick Plitzner almost 7 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/handler/MoveFactualDataHandler.java | ||
---|---|---|
12 | 12 |
import org.eclipse.jface.viewers.ISelection; |
13 | 13 |
import org.eclipse.jface.viewers.TreeSelection; |
14 | 14 |
import org.eclipse.swt.widgets.Display; |
15 |
import org.eclipse.ui.IWorkbenchPart; |
|
16 | 15 |
import org.eclipse.ui.PartInitException; |
17 | 16 |
import org.eclipse.ui.handlers.HandlerUtil; |
18 | 17 |
|
... | ... | |
40 | 39 |
@Override |
41 | 40 |
public Object execute(ExecutionEvent event) throws ExecutionException { |
42 | 41 |
ISelection currentSelection = HandlerUtil.getCurrentSelection(event); |
43 |
IWorkbenchPart activePart = AbstractUtility.getActivePart();
|
|
42 |
Object activePart = AbstractUtility.getActiveE4Part();
|
|
44 | 43 |
TaxonNavigator navigator = null; |
45 | 44 |
if(activePart instanceof TaxonNavigator){ |
46 | 45 |
navigator = (TaxonNavigator)activePart; |
Also available in: Unified diff
ref #6596 Refactored selection handling to support e3 and e4 parts