Author: scabanovich
Date: 2008-06-27 10:56:16 -0400 (Fri, 27 Jun 2008)
New Revision: 8984
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java
Log:
JBIDE-2451
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java 2008-06-27
14:03:26 UTC (rev 8983)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java 2008-06-27
14:56:16 UTC (rev 8984)
@@ -1022,9 +1022,19 @@
for (SeamComponent c: sc) {
c.removeDeclaration(d);
changes = Change.addChange(changes, new Change(c, null, d, null));
+ Set<ISeamComponentDeclaration> ds = c.getAllDeclarations();
+ if(ds.size() == 1) {
+ ISeamComponentDeclaration d1 = ds.iterator().next();
+ if(d1 instanceof ISeamJavaComponentDeclaration
+ && !c.getName().equals(d1.getName())) {
+ c.removeDeclaration(d1);
+ changes = Change.addChange(changes, new Change(c, null, d1, null));
+ }
+ }
if(isComponentEmpty(c)) {
changes = removeEmptyComponent(c);
}
+
}
}
fireChanges(changes);
Show replies by date