public Object getPropertyValue(Object id) {
if (P_ID_NAME.equals(id)) {
return bean.getElementName();
}
if (P_ID_CONFIG.equals(id)) {
IBeansConfig config = BeansModelUtils.getConfig(bean);
IFile file = (IFile) BeansModelUtils.getConfig(bean)
.getElementResource();
if (file != null) {
return new ConfigFilePropertySource(file);
}
return config.getElementName();
}
if (P_ID_CLASS.equals(id)) {
IProject project = BeansModelUtils.getProject(bean).getProject();
String className = bean.getClassName();
IType type = JdtUtils.getJavaType(project, className);