else if (ERROR_ID_UNDEFINED_DESTROY.equals(errorId)) {
String methodName = marker.getAttribute("METHOD", null);
if (methodName != null && className != null) {
NodeInfo nodeInfo = findNodeInfo(marker, BeansSchemaConstants.ATTR_DESTROY_METHOD, methodName);
if (nodeInfo != null && file != null) {
proposals = new MethodAttributeQuickAssistProcessor(nodeInfo.offset, nodeInfo.length,
className, methodName, true, nodeInfo.node, BeansSchemaConstants.ATTR_DESTROY_METHOD,
file.getProject(), false, new InitDestroyMethodContentAssistCalculator(), file)
.computeQuickAssistProposals(null);
}
}
}
else if (ERROR_ID_UNDEFINED_INIT.equals(errorId)) {
String methodName = marker.getAttribute("METHOD", null);
if (methodName != null && className != null) {
NodeInfo nodeInfo = findNodeInfo(marker, BeansSchemaConstants.ATTR_INIT_METHOD, methodName);
if (nodeInfo != null && file != null) {
proposals = new MethodAttributeQuickAssistProcessor(nodeInfo.offset, nodeInfo.length,
className, methodName, true, nodeInfo.node, BeansSchemaConstants.ATTR_INIT_METHOD,
file.getProject(), false, new InitDestroyMethodContentAssistCalculator(), file)
.computeQuickAssistProposals(null);
}
}
}
else if (ERROR_ID_UNDEFINED_FACTORY_BEAN_METHOD.equals(errorId)) {
String methodName = marker.getAttribute("METHOD", null);
if (methodName != null && className != null) {
NodeInfo nodeInfo = findNodeInfo(marker, BeansSchemaConstants.ATTR_FACTORY_METHOD, methodName);
if (nodeInfo != null && file != null) {
proposals = new MethodAttributeQuickAssistProcessor(nodeInfo.offset, nodeInfo.length,
className, methodName, true, nodeInfo.node, BeansSchemaConstants.ATTR_FACTORY_METHOD,
file.getProject(), false, new FactoryMethodContentAssistCalculator(), file)
.computeQuickAssistProposals(null);
}
}