Project

General

Profile

« Previous | Next » 

Revision fcb2dae6

Added by Patrick Plitzner over 5 years ago

fix #7871 Open character matrix as singleton

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/EditorUtil.java
70 70
    }
71 71

  
72 72
    public static void openCharacterMatrix(UUID descriptiveDataSetUuid, EModelService modelService, EPartService partService, MApplication application){
73
        Collection<MPart> parts = partService.getParts();
74
        for (MPart part : parts) {
75
            if(part.getObject() instanceof CharacterMatrixPart
76
                && ((CharacterMatrixPart) part.getObject()).getDescriptiveDataSet().getUuid().equals(descriptiveDataSetUuid)){
77
                partService.showPart(part, PartState.ACTIVATE);
78
                return;
79
            }
80
        }
73 81
        String partId = AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_DESCRIPTIVEDATASET_MATRIX_CHARACTERMATRIXPART;
74 82
        MPart part = showPart(partId, modelService, partService, application);
75 83
        CharacterMatrixPart editor = (CharacterMatrixPart) part.getObject();

Also available in: Unified diff