Project

General

Profile

« Previous | Next » 

Revision e5445f14

Added by Katja Luther over 7 years ago

ref #5995 allow a new search in bulk editor without saving

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/BulkEditor.java
270 270

  
271 271
			// TODO check if dirty, prompt save
272 272
			if (isDirty()) {
273
				boolean proceed = MessageDialog.openQuestion(getEditorSite().getShell(),
274
						"Save changes", "You have made changes that must be saved before this query can be executed. Would you like to proceed?");
275
				if (proceed) {
273
				String[] labels = {"Save (and Search)", "Don't save (and Search)","Cancel"};
274
				MessageDialog dialog =new MessageDialog(getEditorSite().getShell(), "Save changes", null, "You have made changes that must be saved before this query can be executed. Would you like to proceed?", MessageDialog.QUESTION,labels, 0);
275
				int result = dialog.open();
276
						//MessageDialog.openQuestion(getEditorSite().getShell(),
277
						//"Save changes", "You have made changes that must be saved before this query can be executed. Would you like to proceed?");
278
				if (result == 0) {
276 279
					doSave(null);
277
				} else {
280
				} else if (result == 2){
278 281
					return;
279 282
				}
280 283
			}

Also available in: Unified diff