* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
getConversationHolder(), formElement, "Secundum",
entity.getSec(), EntitySelectionElement.ALL,
style);
getConversationHolder(), formElement, "Secundum",
entity.getSec(), EntitySelectionElement.ALL,
style);
text_appendedPhrase = formFactory.createTextWithLabelElement(
formElement, "Appended Phrase", entity.getAppendedPhrase(),
SWT.NULL);
checkbox_useNameCache = formFactory.createCheckbox(formElement,
"Exclude Authorship", entity.isUseNameCache(), style);
text_appendedPhrase = formFactory.createTextWithLabelElement(
formElement, "Appended Phrase", entity.getAppendedPhrase(),
SWT.NULL);
checkbox_useNameCache = formFactory.createCheckbox(formElement,
"Exclude Authorship", entity.isUseNameCache(), style);
if (entity instanceof Taxon) {
checkbox_excluded = formFactory.createCheckbox(formElement,
"Taxon is excluded", ((Taxon) entity).isExcluded(), style);
checkbox_unplaced = formFactory.createCheckbox(formElement,
"Taxon is unplaced", ((Taxon) entity).isUnplaced(), style);
}
if (entity instanceof Taxon) {
checkbox_excluded = formFactory.createCheckbox(formElement,
"Taxon is excluded", ((Taxon) entity).isExcluded(), style);
checkbox_unplaced = formFactory.createCheckbox(formElement,
"Taxon is unplaced", ((Taxon) entity).isUnplaced(), style);
}
checkbox_doubtful = formFactory.createCheckbox(formElement,
entity.getClass().getSimpleName() + " is doubtful", entity.isDoubtful(), style);
}
checkbox_doubtful = formFactory.createCheckbox(formElement,
entity.getClass().getSimpleName() + " is doubtful", entity.isDoubtful(), style);
}
setIrrelevant(toggleable_cache.getState(),
Arrays.asList(new Object[] { toggleable_cache }));
}
setIrrelevant(toggleable_cache.getState(),
Arrays.asList(new Object[] { toggleable_cache }));
}
@Override
protected void handleTitleCacheRelevantChange(PropertyChangeEvent event) {
String title = getEntity().generateTitle();
@Override
protected void handleTitleCacheRelevantChange(PropertyChangeEvent event) {
String title = getEntity().generateTitle();
} else if (eventSource == checkbox_excluded) {
((Taxon) getEntity()).setExcluded(checkbox_excluded.getSelection());
} else if (eventSource == checkbox_unplaced) {
} else if (eventSource == checkbox_excluded) {
((Taxon) getEntity()).setExcluded(checkbox_excluded.getSelection());
} else if (eventSource == checkbox_unplaced) {
- ((Taxon) getEntity()).setUnplaced(checkbox_unplaced.getSelection());
+ ((Taxon) getEntity()).setUnplaced(checkbox_unplaced.getSelection());
+ } else if (eventSource == checkbox_published) {
+ ((Taxon) getEntity()).setPublish(checkbox_published.getSelection());