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