Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2016-10-13 02:28:17 +0000
committerdonald.g.dunne2016-10-13 02:28:17 +0000
commitdb1fab9b64eebc2d4de7d5d76ed7c0f252694cb3 (patch)
tree734ce80d01979647fd43336b4c15d3a110300f7a /plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org
parent4667d79569d689bd73bf0e63cc88d6fa84884e01 (diff)
downloadorg.eclipse.osee-db1fab9b64eebc2d4de7d5d76ed7c0f252694cb3.tar.gz
org.eclipse.osee-db1fab9b64eebc2d4de7d5d76ed7c0f252694cb3.tar.xz
org.eclipse.osee-db1fab9b64eebc2d4de7d5d76ed7c0f252694cb3.zip
feature[ats_ATS314065]: Convert types and type tokens to long.
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org')
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeTypeModifier.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeTypeModifier.java b/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeTypeModifier.java
index 1532cdd5f90..62317b9e85c 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeTypeModifier.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeTypeModifier.java
@@ -25,7 +25,6 @@ import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeType;
import org.eclipse.osee.framework.core.enums.CoreAttributeTypes;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
import org.eclipse.osee.framework.jdk.core.util.Conditions;
-import org.eclipse.osee.framework.jdk.core.util.HexUtil;
import org.eclipse.osee.framework.jdk.core.util.Lib;
import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactQuery;
@@ -61,15 +60,15 @@ public class OseeTypeModifier implements AttributeModifier {
}
Set<Long> uuids = new HashSet<>();
-
- if(oseeDsl != null) {
+
+ if (oseeDsl != null) {
for (EObject object : oseeDsl.eContents()) {
if (object instanceof OseeType) {
addUuid(uuids, (OseeType) object);
}
}
}
-
+
Conditions.checkExpressionFailOnTrue(uuids.contains(0L), "Uuid of 0L is not allowed");
InputStream inputStream = null;
@@ -82,7 +81,7 @@ public class OseeTypeModifier implements AttributeModifier {
}
private void addUuid(Set<Long> set, OseeType type) throws OseeCoreException {
- Long uuid = HexUtil.toLong(type.getUuid());
+ Long uuid = Long.valueOf(type.getId());
boolean wasAdded = set.add(uuid);
Conditions.checkExpressionFailOnTrue(!wasAdded, "Duplicate uuid found: [0x%X]", uuid);
}

Back to the top