Project

General

Profile

« Previous | Next » 

Revision 3dfb5304

Added by Cherian Mathew over 10 years ago

AnnotatedLineEditor : added check and code for the case when the creator also saves the entity
NewObjectHandler : removed popup for title cache
DynamicNewObjectMenu : menu item for SpecimenOrObservationType.FieldUnit disabled for the moment

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/annotatedlineeditor/handler/NewObjectHandler.java
44 44
			
45 45
			Object key = ((Event)event.getTrigger()).data;
46 46
			if (key != null) {
47
				
48
				
49
				String text = ((Event)event.getTrigger()).text;
50
				InputDialog dialog = new InputDialog(HandlerUtil.getActiveShell(event), "Create " + text, "Enter new " + text, "", null);
51
				if (dialog.open() != Window.CANCEL) {
52
					((AnnotatedLineEditor) editor).createAnnotatedLineNewObject(key, dialog.getValue());
53
				}
47

  
48
				((AnnotatedLineEditor) editor).createAnnotatedLineNewObject(key, "Untitled");
54 49
				
55 50
			} else {
56 51
				((AnnotatedLineEditor) editor).createAnnotatedLineNewObject();

Also available in: Unified diff