Project

General

Profile

« Previous | Next » 

Revision af9950d6

Added by Patrick Plitzner about 10 years ago

  • enabled DerivateType filter in DerivateSearchView

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/mvc/combo/EnumTermComboController.java
32 32
import eu.etaxonomy.taxeditor.store.StoreUtil;
33 33
import eu.etaxonomy.taxeditor.ui.element.AbstractCdmFormElement;
34 34
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
35
import eu.etaxonomy.taxeditor.ui.element.CdmPropertyChangeEvent;
36 35
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
37 36
import eu.etaxonomy.taxeditor.ui.element.IEnableableFormElement;
38 37
import eu.etaxonomy.taxeditor.ui.element.ISelectable;
......
275 274
    @Override
276 275
    public void widgetSelected(SelectionEvent e) {
277 276
        selection = elementTypeList.get(combo.getSelectionIndex());
278
        firePropertyChangeEvent(new CdmPropertyChangeEvent(this, e));
279 277
    }
280 278

  
281 279
    /** {@inheritDoc} */
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/derivateSearch/DerivateSearchCompositeController.java
111 111

  
112 112
    private void searchDerivates(String searchString){
113 113
        configurator.setTitleSearchString(searchString);
114
        List<SpecimenOrObservationBase> results = CdmStore.getSearchManager().findOccurrences(configurator, true);
114
        SpecimenOrObservationType type = enumTermComboController.getSelection();
115
        List<SpecimenOrObservationBase> results = CdmStore.getSearchManager().findOccurrencesByType(configurator, type);
115 116
        derivateSearchComposite.getResultViewer().setInput(results);
116 117
    }
117 118

  

Also available in: Unified diff