Project

General

Profile

« Previous | Next » 

Revision 7efbd7cf

Added by Katja Luther almost 8 years ago

use the CdmFilteredSelectionDialog

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/ReferenceSelectionDialog.java
12 12

  
13 13
import java.util.UUID;
14 14

  
15
import org.eclipse.swt.widgets.Control;
15 16
import org.eclipse.swt.widgets.Shell;
17
import org.eclipse.swt.widgets.Text;
16 18

  
17 19
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
18 20
import eu.etaxonomy.cdm.api.service.IReferenceService;
......
75 77
	/** {@inheritDoc} */
76 78
	@Override
77 79
	protected void initModel() {
78
		model = CdmStore.getService(IReferenceService.class).getUuidAndTitleCache();
80
	    Control control = getPatternControl();
81
        String pattern = null;
82
        if (control != null){
83
            pattern = ((Text)control).getText();
84
        }
85

  
86

  
87
		model = CdmStore.getService(IReferenceService.class).getUuidAndTitleCache(limitOfInitialElements,pattern);
79 88
	}
80 89

  
81 90

  

Also available in: Unified diff