Project

General

Profile

Revision 4f4297cd

ID4f4297cd5aebff28bcdb703dbbec45d372ff2a86
Parent 439f33d5
Child e0f895eb

Added by Katja Luther over 2 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/TaxonOfRelationshipElement.java
88 88
				"Published", getEntity().isPublish(), style);
89 89

  
90 90
		checkbox_doubtful = formFactory.createCheckbox(this,
91
				"Misappl. Doubtful", getEntity().isDoubtful(), style);
91
		        "Orginal Taxon Doubtful", getEntity().isDoubtful(), style);
92 92

  
93 93
		if(formFactory.getSelectionProvider() != null){
94 94
            selectionArbitrator = formFactory.createSelectionArbitrator(this);
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

Add picture from clipboard (Maximum size: 40 MB)