getWizard().getContainer().updateButtons();
}
private void validateAttribute(String attributeName, String value) {
IDOMElement newBean = wizard.getNewBean();
WizardContentAssistConverter contentAssistConverter = new WizardContentAssistConverter(newBean,
newBean.getAttributeNode(attributeName), wizard.getBeanFile(), wizard.getOriginalDocument());
if (attributeName.equals(BeansSchemaConstants.ATTR_CLASS)) {
if (value.length() > 0) {
Set<ContentAssistProposalWrapper> classAttributeProposals = contentAssistConverter
.getClassAttributeProposals(value, true);
if (classAttributeProposals.isEmpty()) {
classErrorMessage = Messages.getString("NewBeanWizardPage.UNKNOW_CLASS_MESSAGE"); //$NON-NLS-1$
}
else {
classErrorMessage = null;
}
}
else {
classErrorMessage = null;
}
}
else if (attributeName.equals(BeansSchemaConstants.ATTR_PARENT)) {
if (value.length() > 0) {
Set<ContentAssistProposalWrapper> referenceableBeanDescriptions = contentAssistConverter
.getReferenceableBeanDescriptions(value, true);
if (referenceableBeanDescriptions.isEmpty()) {
parentErrorMessage = Messages.getString("NewBeanWizardPage.UNKNOWN_PARENT_MESSAGE"); //$NON-NLS-1$
}
else {