Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddunne2011-01-21 20:09:43 +0000
committerRyan D. Brooks2011-01-21 20:09:43 +0000
commiteb38977f919ac69a63cc633b572fb4af9434ef61 (patch)
tree035143ff50e01ef80ffb6529c33d51b32f9f34b7
parent55f486018ade49b78245a45b5633b8fb029b8ee5 (diff)
downloadorg.eclipse.osee-eb38977f919ac69a63cc633b572fb4af9434ef61.tar.gz
org.eclipse.osee-eb38977f919ac69a63cc633b572fb4af9434ef61.tar.xz
org.eclipse.osee-eb38977f919ac69a63cc633b572fb4af9434ef61.zip
bug: Fix XStateCombo to remove duplicates
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/widgets/XStateCombo.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/widgets/XStateCombo.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/widgets/XStateCombo.java
index 0bb909adc0c..ef298c27b1f 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/widgets/XStateCombo.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/widgets/XStateCombo.java
@@ -47,7 +47,9 @@ public class XStateCombo extends XComboViewer {
}
for (WorkDefinitionMatch workDef : WorkDefinitionFactory.getWorkDefinitions()) {
for (StateDefinition state : workDef.getWorkDefinition().getStates()) {
- validStates.add(state.getName());
+ if (!validStates.contains(state.getName())) {
+ validStates.add(state.getName());
+ }
}
}
} catch (OseeCoreException ex) {

Back to the top