Project

General

Profile

Revision eeb8c46f

IDeeb8c46f3aa5e8a0b15a6fe49a5ab3033e4db809
Parent 2c5756ad
Child b393d65c

Added by Patrick Plitzner over 1 year ago

ref #6746 Enable details view for feature trees

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/FeatureTreeEditor.java
328 328
    @Override
329 329
    public void changed(Object element) {
330 330
        dirty.setDirty(true);
331
        viewer.refresh();
331 332
    }
332 333

  
333 334
    /**
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/details/DetailsViewerE4.java
41 41
import eu.etaxonomy.cdm.model.description.DescriptionElementBase;
42 42
import eu.etaxonomy.cdm.model.description.Distribution;
43 43
import eu.etaxonomy.cdm.model.description.FeatureNode;
44
import eu.etaxonomy.cdm.model.description.FeatureTree;
44 45
import eu.etaxonomy.cdm.model.description.PolytomousKeyNode;
45 46
import eu.etaxonomy.cdm.model.description.SpecimenDescription;
46 47
import eu.etaxonomy.cdm.model.media.Media;
......
83 84
import eu.etaxonomy.taxeditor.ui.section.feature.CharacterDetailSection;
84 85
import eu.etaxonomy.taxeditor.ui.section.feature.FeatureDistributionDetailSection;
85 86
import eu.etaxonomy.taxeditor.ui.section.feature.FeatureNodeDetailSection;
87
import eu.etaxonomy.taxeditor.ui.section.feature.FeatureTreeDetailSection;
86 88
import eu.etaxonomy.taxeditor.ui.section.grantedAuthority.GrantedAuthorityDetailSection;
87 89
import eu.etaxonomy.taxeditor.ui.section.group.GroupDetailSection;
88 90
import eu.etaxonomy.taxeditor.ui.section.group.MemberDetailSection;
......
336 338
        } else if (input instanceof FeatureNode) {
337 339
            createFeatureNodeSection(rootElement);
338 340

  
341
        } else if (input instanceof FeatureTree) {
342
            createFeatureTreeSection(rootElement);
343

  
339 344
        } else if (input instanceof Character) {
340 345
            createCharacterSection(rootElement);
341 346

  
......
769 774

  
770 775
    }
771 776

  
777
    private void createFeatureTreeSection(RootElement parent) {
778
        destroySections();
779

  
780
        FeatureTreeDetailSection section = formFactory.createFeatureTreeDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
781

  
782
        addPart(section);
783
    }
784

  
772 785
    private void createFeatureNodeSection(RootElement parent) {
773 786
        destroySections();
774 787

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)