private void setFeaturePropsEnablements(IGeoResource resource, IProgressMonitor monitor) {
featureDocumentsFlag.setSelection(false);
featureDocumentsFlag.setEnabled(false);
if (resource.canResolve(IAttachmentSource.class)) {
try {
final IAttachmentSource source = resource.resolve(IAttachmentSource.class, monitor);
featureDocumentsFlag.setSelection(source.isEnabled());
featureDocumentsFlag.setEnabled(source.isEnabledEditable());
} catch (IOException e) {
// Already disabled
}
}
}