Project

General

Profile

« Previous | Next » 

Revision 6ff2e71e

Added by Patrick Plitzner over 6 years ago

ref #7095 Cache specimens for specimen selection dialog

View differences:

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

  
186 186
    private EventList<RowWrapper> descriptions;
187 187

  
188
    private Collection<SpecimenOrObservationBase> specimenCache = null;
189

  
188 190
    @PostConstruct
189 191
    public void create(Composite parent) {
190 192
        if(CdmStore.isActive() && conversation==null){
......
560 562
        btnAddDescription.addSelectionListener(new SelectionAdapter() {
561 563
            @Override
562 564
            public void widgetSelected(SelectionEvent e) {
563
                SpecimenSelectionDialog dialog = new SpecimenSelectionDialog(natTable.getShell(), workingSet);
565
                SpecimenSelectionDialog dialog = new SpecimenSelectionDialog(natTable.getShell(), CharacterMatrix.this);
564 566
                if(dialog.open()==Window.OK){
565 567
                    Collection<SpecimenOrObservationBase> specimens = dialog.getSpecimen();
566 568
                    boolean hasAdded = false;
......
744 746
        return natTable;
745 747
    }
746 748

  
749
    public WorkingSet getWorkingSet() {
750
        return workingSet;
751
    }
752

  
753
    public Collection<SpecimenOrObservationBase> getSpecimenCache() {
754
        return specimenCache;
755
    }
756

  
757
    public void setSpecimenCache(Collection<SpecimenOrObservationBase> specimenCache) {
758
        this.specimenCache = specimenCache;
759
    }
760

  
747 761
    @Persist
748 762
    @Override
749 763
    public void save(IProgressMonitor monitor) {

Also available in: Unified diff