Project

General

Profile

« Previous | Next » 

Revision 1e1a1052

Added by Patrick Plitzner almost 6 years ago

ref #6321 Cancel previous search when starting a new one

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/AbstractBulkEditorInput.java
143 143
	}
144 144

  
145 145
	public void performSearch(final BulkEditorQuery bulkEditorQuery) {
146
	    //cancel previous search job
146 147
	    if(searchJob!=null && searchJob.getState()!=Job.NONE){
147
	        MessagingUtils.informationDialog(Messages.AbstractBulkEditorInput_MULTIPLE_SEARCH_TITLE, Messages.AbstractBulkEditorInput_MULTIPLE_SEARCH_MESSAGE);
148
	        return;
148
	        searchJob.cancel();
149
	        searchJob = null;
149 150
	    }
150 151
	    model.clear();
151 152

  

Also available in: Unified diff