Project

General

Profile

« Previous | Next » 

Revision 8712cea1

Added by Patrick Plitzner almost 6 years ago

ref #6913 Remove alignment handler

View differences:

eu.etaxonomy.taxeditor.molecular/src/main/java/eu/etaxonomy/taxeditor/molecular/handler/HandlerTools.java
15 15
import org.eclipse.core.runtime.Path;
16 16
import org.eclipse.jface.resource.ImageDescriptor;
17 17

  
18
import eu.etaxonomy.taxeditor.model.AbstractUtility;
18 19
import eu.etaxonomy.taxeditor.molecular.TaxeditorMolecularPlugin;
20
import eu.etaxonomy.taxeditor.molecular.editor.e4.AlignmentEditorE4;
19 21
import eu.etaxonomy.taxeditor.molecular.l10n.Messages;
20 22

  
21 23

  
......
37 39
            throw new InternalError(String.format(Messages.HandlerTools_COULD_NOT_LOAD_ICON, iconName));  //TODO Throw other type of exception?
38 40
        }
39 41
    }
42
    public static AlignmentEditorE4 getActiveAlignmentEditor() {
43
        Object activeEditor = AbstractUtility.getActiveEditor();
44
        if (activeEditor instanceof AlignmentEditorE4) {
45
            return (AlignmentEditorE4)activeEditor;
46
        }
47
        else {
48
            return null;
49
        }
50
    }
40 51
}

Also available in: Unified diff