Project

General

Profile

« Previous | Next » 

Revision bd122e26

Added by Katja Luther over 1 year ago

rename TaxonNameEditor to TaxonEditor and NameViewerE4 to NameViewer

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/concept/e4/handler/CreateConceptRelationHandlerE4.java
27 27
import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper;
28 28
import eu.etaxonomy.cdm.model.taxon.Taxon;
29 29
import eu.etaxonomy.cdm.model.taxon.TaxonRelationshipType;
30
import eu.etaxonomy.taxeditor.editor.name.e4.TaxonNameEditor;
30
import eu.etaxonomy.taxeditor.editor.name.e4.TaxonEditor;
31 31
import eu.etaxonomy.taxeditor.editor.view.concept.e4.ConceptViewPartE4;
32 32
import eu.etaxonomy.taxeditor.editor.view.concept.operation.CreateConceptRelationOperation;
33 33
import eu.etaxonomy.taxeditor.model.AbstractUtility;
......
55 55
        UUID uuid = (UUID) menuItem.getTransientData().get(commandId+".taxonRelationshipType.uuid");
56 56
        TaxonRelationshipType taxonRelationshipType = HibernateProxyHelper.deproxy(CdmStore.getService(ITermService.class).load(uuid), TaxonRelationshipType.class);
57 57

  
58
        TaxonNameEditor editor = null;
58
        TaxonEditor editor = null;
59 59

  
60 60
        ConceptViewPartE4 conceptView = (ConceptViewPartE4) activePart.getObject();
61 61

  
62 62
        Object e4WrappedPart = WorkbenchUtility.getE4WrappedPart(conceptView.getSelectionProvidingPart());
63
        if(e4WrappedPart instanceof TaxonNameEditor){
64
            editor = (TaxonNameEditor) e4WrappedPart;
63
        if(e4WrappedPart instanceof TaxonEditor){
64
            editor = (TaxonEditor) e4WrappedPart;
65 65

  
66 66
            IUndoContext undoContext = null;
67 67

  
......
99 99
        ConceptViewPartE4 conceptView = (ConceptViewPartE4) activePart.getObject();
100 100

  
101 101
        Object e4WrappedPart = WorkbenchUtility.getE4WrappedPart(conceptView.getSelectionProvidingPart());
102
        canExecute = e4WrappedPart instanceof TaxonNameEditor;
102
        canExecute = e4WrappedPart instanceof TaxonEditor;
103 103
        menuItem.setVisible(canExecute);
104 104
        return canExecute;
105 105
    }

Also available in: Unified diff