Author: dgeraskov
Date: 2008-03-05 03:04:32 -0500 (Wed, 05 Mar 2008)
New Revision: 6686
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/IReverseEngineeringDefinition.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl/ReverseEngineeringDefinitionImpl.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1846
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/IReverseEngineeringDefinition.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/IReverseEngineeringDefinition.java 2008-03-05
08:04:27 UTC (rev 6685)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/IReverseEngineeringDefinition.java 2008-03-05
08:04:32 UTC (rev 6686)
@@ -47,6 +47,7 @@
ITypeMapping[] getTypeMappings();
ITypeMapping createTypeMapping();
+ void removeAllTypeMappings();
void removeTypeMapping(ITypeMapping item);
void addTypeMapping(ITypeMapping typeMapping);
void moveTypeMappingDown(ITypeMapping item);
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl/ReverseEngineeringDefinitionImpl.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl/ReverseEngineeringDefinitionImpl.java 2008-03-05
08:04:27 UTC (rev 6685)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl/ReverseEngineeringDefinitionImpl.java 2008-03-05
08:04:32 UTC (rev 6686)
@@ -134,9 +134,15 @@
public void moveTypeMappingUp(ITypeMapping item) {
move(item, -1, typeMappings, TYPEMAPPING_STRUCTURE);
}
+
+ public void removeAllTypeMappings() {
+ typeMappings.clear();
+ firePropertyChange(TYPEMAPPING_STRUCTURE, null, null);
+ }
public void removeTypeMapping(ITypeMapping item) {
- typeMappings.remove(item);
+ typeMappings.remove(item);
+ firePropertyChange(TYPEMAPPING_STRUCTURE, item, null);
}
public IRevEngTable[] getTables() {