checkbox_doubtful = formFactory.createCheckbox(formElement,
entity.getClass().getSimpleName() + " is doubtful", entity.isDoubtful(), style);
- checkbox_published = formFactory.createCheckbox(formElement,
- "Taxon is published", ((TaxonBase) entity).isPublish(), style);
-
+ if (entity instanceof Taxon) {
+ checkbox_published = formFactory.createCheckbox(formElement,
+ "Taxon is published", ((Taxon) entity).isPublish(), style);
+ }
}
/** {@inheritDoc} */
} else if (eventSource == checkbox_unplaced) {
((Taxon) getEntity()).setUnplaced(checkbox_unplaced.getSelection());
} else if (eventSource == checkbox_published) {
- ((Taxon) getEntity()).setPublish(checkbox_published.getSelection());
+ ((Taxon)getEntity()).setPublish(checkbox_published.getSelection());
}
}
}