Project

General

Profile

« Previous | Next » 

Revision 1245cdd8

Added by Patrick Plitzner about 6 years ago

ref #7095 Change taxon column cell text depending on tree/list view

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/workingSet/matrix/CharacterMatrix.java
201 201

  
202 202
    private DefaultBodyLayerStack bodyLayer;
203 203

  
204
    private boolean isTreeView = true;
205

  
204 206

  
205 207
    public CharacterMatrix(Composite parent, CharacterMatrixPart part) {
206 208
        super(parent, SWT.NONE);
......
475 477
    }
476 478

  
477 479
    private void toggleTreeFlat(boolean isTree, Button btnToggleFlat, Button btnToggleTree, Button btnCollapseAll, Button btnExpandAll, Button btnFreezeSuppInfo) {
480
        isTreeView = isTree;
478 481
        createLayers(isTree);
479 482
        btnToggleFlat.setEnabled(isTree);
480 483
        btnToggleTree.setEnabled(!isTree);
......
485 488
        freezeSupplementalColumns(btnFreezeSuppInfo.getSelection());
486 489
    }
487 490

  
491
    public boolean isTreeView() {
492
        return isTreeView;
493
    }
494

  
488 495
    public void createTable(boolean treeView){
489 496
        /**
490 497
         * layers
......
759 766
                //add display converter for string representation
760 767
                configRegistry.registerConfigAttribute(
761 768
                        CellConfigAttributes.DISPLAY_CONVERTER,
762
                        new SupplementalInfoDisplayConverter(),
769
                        new SupplementalInfoDisplayConverter(CharacterMatrix.this),
763 770
                        DisplayMode.NORMAL,
764 771
                        TAXON_COLUMN);
765 772
                configRegistry.registerConfigAttribute(
......
769 776
                        TAXON_COLUMN);
770 777
                configRegistry.registerConfigAttribute(
771 778
                        CellConfigAttributes.DISPLAY_CONVERTER,
772
                        new SupplementalInfoDisplayConverter(),
779
                        new SupplementalInfoDisplayConverter(CharacterMatrix.this),
773 780
                        DisplayMode.NORMAL,
774 781
                        COLLECTOR_COLUMN);
775 782
                configRegistry.registerConfigAttribute(
......
779 786
                        COLLECTOR_COLUMN);
780 787
                configRegistry.registerConfigAttribute(
781 788
                        CellConfigAttributes.DISPLAY_CONVERTER,
782
                        new SupplementalInfoDisplayConverter(),
789
                        new SupplementalInfoDisplayConverter(CharacterMatrix.this),
783 790
                        DisplayMode.NORMAL,
784 791
                        IDENTIFIER_COLUMN);
785 792
                configRegistry.registerConfigAttribute(
......
789 796
                        IDENTIFIER_COLUMN);
790 797
                configRegistry.registerConfigAttribute(
791 798
                        CellConfigAttributes.DISPLAY_CONVERTER,
792
                        new SupplementalInfoDisplayConverter(),
799
                        new SupplementalInfoDisplayConverter(CharacterMatrix.this),
793 800
                        DisplayMode.NORMAL,
794 801
                        COUNTRY_COLUMN);
795 802
                configRegistry.registerConfigAttribute(

Also available in: Unified diff