Author: rob.stryker(a)jboss.com
Date: 2007-06-15 12:53:14 -0400 (Fri, 15 Jun 2007)
New Revision: 2125
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/build/ModelChangeListener.java
Log:
nodeRemoved contained a bug, wrong variable used
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/build/ModelChangeListener.java
===================================================================
---
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/build/ModelChangeListener.java 2007-06-14
10:59:01 UTC (rev 2124)
+++
trunk/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/build/ModelChangeListener.java 2007-06-15
16:53:14 UTC (rev 2125)
@@ -33,7 +33,6 @@
*/
public void modelChanged(IArchiveNodeDelta delta) {
// if we're not building, get out
- System.out.println("** model changed");
if(
!ArchivesCore.getInstance().getPreferenceManager().isBuilderEnabled(delta.getPostNode().getProjectPath()))
return;
@@ -162,8 +161,8 @@
} else if( removed.getNodeType() == IArchiveNode.TYPE_ARCHIVE_FOLDER ){
IArchiveFileSet[] filesets =
ModelUtil.findAllDescendentFilesets(((IArchiveFolder)removed));
for( int i = 0; i < filesets.length; i++ ) {
- IPath[] removedPaths =
ModelTruezipBridge.fullFilesetRemove(((IArchiveFileSet)removed), false);
- EventManager.filesRemoved(removedPaths, ((IArchiveFileSet)removed));
+ IPath[] removedPaths = ModelTruezipBridge.fullFilesetRemove(filesets[i], false);
+ EventManager.filesRemoved(removedPaths, ((IArchiveFileSet)filesets[i]));
}
postChange(removed);
return;
Show replies by date