Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbrooks2010-09-27 14:13:43 -0400
committerRyan D. Brooks2010-09-27 14:13:43 -0400
commitfb7a676589923d3993f010d4c7446ad5f81a2825 (patch)
treec355cebffe2a0c02f09ac7a5926e1750a1aac78e /plugins
parent5c1ccc5db17dd32a6bd062fb28e53eaee69a9181 (diff)
downloadorg.eclipse.osee-fb7a676589923d3993f010d4c7446ad5f81a2825.tar.gz
org.eclipse.osee-fb7a676589923d3993f010d4c7446ad5f81a2825.tar.xz
org.eclipse.osee-fb7a676589923d3993f010d4c7446ad5f81a2825.zip
bug: Stop export change report from including multiples of the same artifact
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ExportChangeReportsAction.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ExportChangeReportsAction.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ExportChangeReportsAction.java
index 4c157cd2c60..f80c6371dcd 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ExportChangeReportsAction.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/ExportChangeReportsAction.java
@@ -15,6 +15,7 @@ import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
+import java.util.Iterator;
import java.util.List;
import java.util.logging.Level;
import org.eclipse.core.runtime.IProgressMonitor;
@@ -36,6 +37,7 @@ import org.eclipse.osee.framework.core.operation.Operations;
import org.eclipse.osee.framework.logging.OseeLog;
import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactQuery;
+import org.eclipse.osee.framework.skynet.core.change.ArtifactChange;
import org.eclipse.osee.framework.skynet.core.change.Change;
import org.eclipse.osee.framework.skynet.core.revision.ChangeManager;
import org.eclipse.osee.framework.skynet.core.transaction.TransactionManager;
@@ -170,6 +172,13 @@ public class ExportChangeReportsAction extends Action {
if (operation != null) {
doSubWork(operation, monitor, 0.50);
+ Iterator<Change> iterator = changes.iterator();
+ while (iterator.hasNext()) {
+ if (!(iterator.next() instanceof ArtifactChange)) {
+ iterator.remove();
+ }
+ }
+
Collections.sort(changes);
}
return changes;

Back to the top