Project

General

Profile

« Previous | Next » 

Revision 7dce04a4

Added by Katja Luther over 7 years ago

fix #5692: adapt delete algorithm to annotatedLineEditor mechanisms

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/BulkEditor.java
74 74
	private boolean isDirty;
75 75

  
76 76
    private IUndoContext undoContext;
77
    
78
    private BulkEditorQuery lastQuery;
79
    
80
	/**
81
	 * @return the lastQuery
82
	 */
83
	public BulkEditorQuery getLastQuery() {
84
		return lastQuery;
85
	}
77 86

  
78 87
	public BulkEditor() {
79 88
		super(CdmStore.createConversation());
......
185 194
		searchBar.setFocus();
186 195
	}
187 196

  
197
	/**
198
	 * @return the searchBar
199
	 */
200
	public BulkEditorSearch getSearchBar() {
201
		return searchBar;
202
	}
203

  
188 204
	private void displayWarningDialog() {
189 205
		IPreferenceStore prefs = PreferencesUtil.getPreferenceStore();
190 206
		if (!prefs.getBoolean(IPreferenceKeys.HIDE_BULKEDITOR_INFO)) {
......
247 263
	    isDirty = true;
248 264
	    firePropertyChange(PROP_DIRTY);
249 265
	}
250

  
251
	@Override
266
	
267
	
268
   	@Override
252 269
	public void doSave(IProgressMonitor progressMonitor) {
253 270
	    isDirty = false;
254 271

  
......
286 303
					return;
287 304
				}
288 305
			}
289
			conversation.clear();
290
			conversation.commit(true);
306
			//conversation.clear();
307
			//conversation.commit(true);
291 308

  
292 309
			getEditorInput().dispose();
293 310
			getEditorInput().bind();
294 311
			getEditorInput().performSearch(query);
295

  
312
			this.lastQuery = query;	
313
			this.lastQuery.getSearchConfigurator().setCheckResult(false);
296 314
			refresh();
297 315

  
298 316
			selectFirstItem();
......
336 354
    public IUndoContext getUndoContext() {
337 355
        return undoContext;
338 356
    }
357

  
358
	public void setDirty(boolean isDirty) {
359
		this.isDirty = isDirty;
360
	}
339 361
}

Also available in: Unified diff