Project

General

Profile

« Previous | Next » 

Revision c3dcb24c

Added by Cherian Mathew over 7 years ago

StatusComposite : added 'set as unresolved' action to context menu
LeafNodeTaxonContainer : added sorting of synonym container

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/component/StatusComposite.java
116 116
    private static final String CREATE_SYNONYM = "Create Synonym";
117 117
    private static final String SET_AS_DELETED = "Set as Deleted";
118 118
    private static final String SET_AS_EXCLUDED = "Set as Excluded";
119
    private static final String SET_AS_UNRESOLVED = "Set as Unresolved";
119 120
    private static final String SET_AS_OUT_OF_SCOPE = "Set as Out Of Scope";
120 121

  
121 122
    private static final String PROPERTY_FILTER_ID = "filter";
......
443 444
        ContextMenuItem setExcludedMenuItem = taxaTableContextMenu.addItem(SET_AS_EXCLUDED);
444 445
        setExcludedMenuItem.setData(SET_AS_EXCLUDED);
445 446

  
447
        ContextMenuItem setUnresolvedMenuItem = taxaTableContextMenu.addItem(SET_AS_UNRESOLVED);
448
        setUnresolvedMenuItem.setData(SET_AS_UNRESOLVED);
449

  
450

  
446 451
        ContextMenuItem setOutOfScopeMenuItem = taxaTableContextMenu.addItem(SET_AS_OUT_OF_SCOPE);
447 452
        setOutOfScopeMenuItem.setData(SET_AS_OUT_OF_SCOPE);
448 453

  
src/main/java/eu/etaxonomy/cdm/vaadin/container/LeafNodeTaxonContainer.java
73 73
    public LeafNodeTaxonContainer(int classificationId) throws SQLException {
74 74
        super(CdmQueryFactory.generateTaxonBaseQuery(NAME_ID, PB_ID, UNP_ID, RANK_ID, HAS_SYN_ID));
75 75
        this.synonymContainer = new CdmSQLContainer(CdmQueryFactory.generateSynonymofTaxonQuery(NAME_ID));
76
        this.synonymContainer.sort(new String[]{NAME_ID}, new boolean[]{true});
76 77
        this.classificationId = classificationId;
77 78
        taxonSynonymMap = new HashMap<Object,List<Object>>();
78 79
        initFilters();

Also available in: Unified diff