Project

General

Profile

Revision fcb2dae6

IDfcb2dae63a03e03ad65a4b0f2f564a5e002c0582
Parent f3077849
Child 7ec143e3

Added by Patrick Plitzner almost 3 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

Add picture from clipboard (Maximum size: 40 MB)