Project

General

Profile

« Previous | Next » 

Revision 4f4297cd

Added by Katja Luther almost 6 years ago

fix #7378: add taxon doubtful and relationship doubtful checkbox to misapplied name details view

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/TaxonRelationshipDetailElement.java
79 79
					Taxon.class, //getConversationHolder(),
80 80
					formElement, "Related Taxon", getRelatedTaxon(),
81 81
					EntitySelectionElement.SELECTABLE, style);
82
			checkBoxDoubtful = formFactory.createCheckbox(formElement, "Relation is doubtful", entity.isDoubtful(), style);
82

  
83 83
		}else{
84 84
			taxon = entity.getFromTaxon();
85 85

  
......
111 111
		            formElement, "Detail",
112 112
		            entity.getCitationMicroReference(),null,
113 113
		            SWT.WRAP);
114

  
115

  
114 116
		}
117
		checkBoxDoubtful = formFactory.createCheckbox(formElement, "Relation Doubtful", entity.isDoubtful(), style);
115 118
	}
116 119

  
117 120
	private Taxon getRelatedTaxon() {
......
151 154
				}else{
152 155
					getEntity().setToTaxon(relatedTaxon);
153 156
				}
154
			}else if(eventSource==checkBoxDoubtful){
155
			    getEntity().setDoubtful(checkBoxDoubtful.getSelection());
156 157
			}
157 158
		}
159
		if(eventSource==checkBoxDoubtful){
160
            getEntity().setDoubtful(checkBoxDoubtful.getSelection());
161
        }
158 162
		firePropertyChangeEvent(new CdmPropertyChangeEvent(this, null));
159 163
		EventUtility.postEvent(WorkbenchEventConstants.REFRESH_NAME_EDITOR, getEntity().getToTaxon());
160 164
	}

Also available in: Unified diff