Author: scabanovich
Date: 2009-10-01 11:29:31 -0400 (Thu, 01 Oct 2009)
New Revision: 17849
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/editor/HibernatePropertiesContentAssistProcessor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4916
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/editor/HibernatePropertiesContentAssistProcessor.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/editor/HibernatePropertiesContentAssistProcessor.java 2009-10-01
15:29:03 UTC (rev 17848)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/editor/HibernatePropertiesContentAssistProcessor.java 2009-10-01
15:29:31 UTC (rev 17849)
@@ -36,6 +36,7 @@
import
org.jboss.tools.common.model.ui.texteditors.propertyeditor.AbstractPropertiesContentAssistProcessor;
import org.jboss.tools.common.model.util.EclipseJavaUtil;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
+import org.jboss.tools.hibernate.ui.xml.form.HibConfig3PropertyFormLayoutData;
import org.jboss.tools.hibernate.xml.model.impl.HibConfigComplexPropertyImpl;
/**
@@ -150,7 +151,7 @@
public static Map<String, XAttribute> getAttributes(XModelObject object) {
if(attributes == null) {
attributes = new TreeMap<String, XAttribute>();
- XModelEntity entity =
object.getModel().getMetaData().getEntity("HibConfig3PropertiesFolder");
//$NON-NLS-1$
+ XModelEntity entity =
object.getModel().getMetaData().getEntity(HibConfig3PropertyFormLayoutData.PROPERTY_FOLDER_ENTITY);
XChild[] cs = entity.getChildren();
for (int i = 0; i < cs.length; i++) {
if(cs[i].isRequired()) {