Revision f13a970a
Added by Patrick Plitzner almost 7 years ago
eu.etaxonomy.taxeditor.molecular/src/main/java/eu/etaxonomy/taxeditor/molecular/handler/AbstractPherogramComponentHandler.java | ||
---|---|---|
9 | 9 |
package eu.etaxonomy.taxeditor.molecular.handler; |
10 | 10 |
|
11 | 11 |
|
12 |
import info.bioinfweb.libralign.alignmentarea.AlignmentArea; |
|
13 |
import info.bioinfweb.libralign.dataarea.implementations.pherogram.PherogramArea; |
|
14 |
import info.bioinfweb.libralign.pherogram.PherogramComponent; |
|
15 |
|
|
16 | 12 |
import java.util.Iterator; |
17 | 13 |
|
18 | 14 |
import org.eclipse.core.commands.AbstractHandler; |
19 | 15 |
import org.eclipse.core.commands.ExecutionEvent; |
20 | 16 |
import org.eclipse.core.commands.ExecutionException; |
21 |
import org.eclipse.ui.IWorkbenchPart; |
|
22 | 17 |
|
23 | 18 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
24 | 19 |
import eu.etaxonomy.taxeditor.molecular.editor.AlignmentEditor; |
25 | 20 |
import eu.etaxonomy.taxeditor.molecular.editor.PherogramViewPart; |
21 |
import info.bioinfweb.libralign.alignmentarea.AlignmentArea; |
|
22 |
import info.bioinfweb.libralign.dataarea.implementations.pherogram.PherogramArea; |
|
23 |
import info.bioinfweb.libralign.pherogram.PherogramComponent; |
|
26 | 24 |
|
27 | 25 |
|
28 | 26 |
|
... | ... | |
36 | 34 |
public abstract class AbstractPherogramComponentHandler extends AbstractHandler { |
37 | 35 |
@Override |
38 | 36 |
public Object execute(ExecutionEvent event) throws ExecutionException { |
39 |
IWorkbenchPart activePart = AbstractUtility.getActivePart();
|
|
37 |
Object activePart = AbstractUtility.getActiveE4Part();
|
|
40 | 38 |
|
41 | 39 |
if (activePart instanceof AlignmentEditor) { |
42 | 40 |
AlignmentEditor editor = (AlignmentEditor)activePart; |
Also available in: Unified diff
ref #6596 Refactored selection handling to support e3 and e4 parts