Messages.DocumentPropertyPage_errRequired);
return false;
}
final StructuredSelection selection = (StructuredSelection) typeViewer.getSelection();
final ContentType type = (ContentType) selection.getFirstElement();
final String attributeName = attributeViewer.getCombo().getText();
for (HotlinkDescriptor hotlink : hotlinkList) {
if (!descriptor.isEmpty() && hotlink.toString().equals(descriptor.toString())) {
continue;
}
if (attributeName.equals(hotlink.getAttributeName())) {
final ContentType currentType = hotlink.getType();
if (ContentType.ACTION == currentType && ContentType.ACTION == type) {
return true;
} else {
attributeViewer.getControl().setFocus();
MessageDialog.openError(getShell(), Messages.DocumentPropertyPage_title,