Author: scabanovich
Date: 2008-10-17 09:14:43 -0400 (Fri, 17 Oct 2008)
New Revision: 10920
Added:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jboss/tools/hibernate/xml/model/impl/HibConfigListenerImpl.java
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/plugin.xml
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/meta/hibconfig3.meta
Log:
JBIDE-2778
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/plugin.xml
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/plugin.xml 2008-10-17
12:50:52 UTC (rev 10919)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/plugin.xml 2008-10-17
13:14:43 UTC (rev 10920)
@@ -65,6 +65,8 @@
class="org.jboss.tools.hibernate.xml.model.impl.HibConfigCacheImpl"/>
<xclass
id="org.jboss.tools.hibernate.xml.model.impl.HibConfigMappingImpl"
class="org.jboss.tools.hibernate.xml.model.impl.HibConfigMappingImpl"/>
+ <xclass
id="org.jboss.tools.hibernate.xml.model.impl.HibConfigListenerImpl"
+ class="org.jboss.tools.hibernate.xml.model.impl.HibConfigListenerImpl"/>
<xclass
id="org.jboss.tools.hibernate.xml.model.impl.HibernateAuxFolderImpl"
class="org.jboss.tools.hibernate.xml.model.impl.HibernateAuxFolderImpl"/>
<xclass id="org.jboss.tools.hibernate.xml.model.impl.HibernateClassImpl"
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/meta/hibconfig3.meta
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/meta/hibconfig3.meta 2008-10-17
12:50:52 UTC (rev 10919)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/meta/hibconfig3.meta 2008-10-17
13:14:43 UTC (rev 10920)
@@ -658,7 +658,7 @@
</XActionItem>
<XDependencies/>
</XModelEntity>
- <XModelEntity ImplementingClass="%Regular2%"
XMLSUBPATH="listener" name="HibConfig3Listener">
+ <XModelEntity
ImplementingClass="org.jboss.tools.hibernate.xml.model.impl.HibConfigListenerImpl"
XMLSUBPATH="listener" name="HibConfig3Listener">
<XChildrenEntities/>
<XEntityRenderer>
<ICONS>
Added:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jboss/tools/hibernate/xml/model/impl/HibConfigListenerImpl.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jboss/tools/hibernate/xml/model/impl/HibConfigListenerImpl.java
(rev 0)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jboss/tools/hibernate/xml/model/impl/HibConfigListenerImpl.java 2008-10-17
13:14:43 UTC (rev 10920)
@@ -0,0 +1,18 @@
+package org.jboss.tools.hibernate.xml.model.impl;
+
+public class HibConfigListenerImpl extends RegularObject2Impl {
+
+ private static final long serialVersionUID = 1L;
+
+ public HibConfigListenerImpl() {}
+
+ public String getPathPart() {
+ String pp = super.getPathPart();
+ String type = getAttributeValue("type");
+ if(type != null && type.length() > 0) {
+ pp += ":" + type;
+ }
+ return pp;
+ }
+
+}