Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto E. Escobar2013-05-23 21:00:37 +0000
committerRoberto E. Escobar2013-06-17 23:09:29 +0000
commit44d00a5571af2feb2c1bc40948e63a19f725ab36 (patch)
treeb6503bfc94ee5636319b1b922bc84b1c1f7ffece
parent549fe909c75fff76d0c1a4e49265689eb7527309 (diff)
downloadorg.eclipse.osee-44d00a5571af2feb2c1bc40948e63a19f725ab36.tar.gz
org.eclipse.osee-44d00a5571af2feb2c1bc40948e63a19f725ab36.tar.xz
org.eclipse.osee-44d00a5571af2feb2c1bc40948e63a19f725ab36.zip
feature[ats_QGK3T]: Add demo DSL attribute type
-rw-r--r--plugins/org.eclipse.osee.client.demo/src/org/eclipse/osee/client/demo/DemoTypes.java (renamed from plugins/org.eclipse.osee.client.demo/src/org/eclipse/osee/client/demo/DemoArtifactTypes.java)8
-rw-r--r--plugins/org.eclipse.osee.client.demo/support/OseeTypes_ClientDemo.osee15
-rw-r--r--plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/integration/skynet/core/ArtifactTest.java4
3 files changed, 23 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.client.demo/src/org/eclipse/osee/client/demo/DemoArtifactTypes.java b/plugins/org.eclipse.osee.client.demo/src/org/eclipse/osee/client/demo/DemoTypes.java
index 81030115a05..428a4351188 100644
--- a/plugins/org.eclipse.osee.client.demo/src/org/eclipse/osee/client/demo/DemoArtifactTypes.java
+++ b/plugins/org.eclipse.osee.client.demo/src/org/eclipse/osee/client/demo/DemoTypes.java
@@ -11,18 +11,22 @@
package org.eclipse.osee.client.demo;
import org.eclipse.osee.framework.core.data.IArtifactType;
+import org.eclipse.osee.framework.core.data.IAttributeType;
import org.eclipse.osee.framework.core.data.TokenFactory;
/**
* @author Roberto E. Escobar
*/
-public final class DemoArtifactTypes {
+public final class DemoTypes {
// @formatter:off
public static final IArtifactType DemoTestRequirement = TokenFactory.createArtifactType(0x0000000000000056L, "Demo Artifact With Selective Partition");
+
+ public static final IArtifactType DemoDslArtifact = TokenFactory.createArtifactType(0x0000BA0400000022L, "Demo DSL Artifact");
+ public static final IAttributeType DemoDslAttribute = TokenFactory.createAttributeType(0x1000BA00000001CFL, "AxRbLlj+c2ZHjBeumfgA");
// @formatter:on
- private DemoArtifactTypes() {
+ private DemoTypes() {
// Constants
}
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.client.demo/support/OseeTypes_ClientDemo.osee b/plugins/org.eclipse.osee.client.demo/support/OseeTypes_ClientDemo.osee
index 7eb99f0e1bb..2e21db8b5c9 100644
--- a/plugins/org.eclipse.osee.client.demo/support/OseeTypes_ClientDemo.osee
+++ b/plugins/org.eclipse.osee.client.demo/support/OseeTypes_ClientDemo.osee
@@ -6,3 +6,18 @@ artifactType "Demo Artifact With Selective Partition" extends "Artifact" {
uuid 0x0000000000000056
attribute "Partition" branchGuid "AyH_f2sSKy3l07fIvAAA"
}
+
+artifactType "Demo DSL Artifact" extends "Artifact" {
+ guid "AxRkVfg7KGoSh26NZFgA"
+ uuid 0x0000BA0400000022
+ attribute "Demo DSL Attribute"
+}
+
+attributeType "Demo DSL Attribute" extends StringAttribute {
+ guid "AxRbLlj+c2ZHjBeumfgA"
+ uuid 0x1000BA00000001CF
+ dataProvider DefaultAttributeDataProvider
+ min 0
+ max unlimited
+ mediaType "application/osee+dsl"
+}
diff --git a/plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/integration/skynet/core/ArtifactTest.java b/plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/integration/skynet/core/ArtifactTest.java
index 5cafdb0d019..8a7e2768af2 100644
--- a/plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/integration/skynet/core/ArtifactTest.java
+++ b/plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/integration/skynet/core/ArtifactTest.java
@@ -12,7 +12,7 @@
package org.eclipse.osee.client.integration.tests.integration.skynet.core;
import static org.eclipse.osee.client.demo.DemoChoice.OSEE_CLIENT_DEMO;
-import org.eclipse.osee.client.demo.DemoArtifactTypes;
+import org.eclipse.osee.client.demo.DemoTypes;
import org.eclipse.osee.client.demo.DemoBranches;
import org.eclipse.osee.client.test.framework.OseeClientIntegrationRule;
import org.eclipse.osee.client.test.framework.OseeLogMonitorRule;
@@ -48,7 +48,7 @@ public final class ArtifactTest {
@Before
public void setUp() throws Exception {
artifactWithSpecialAttr =
- ArtifactTypeManager.addArtifact(DemoArtifactTypes.DemoTestRequirement, DemoBranches.SAW_Bld_1);
+ ArtifactTypeManager.addArtifact(DemoTypes.DemoTestRequirement, DemoBranches.SAW_Bld_1);
}
@After

Back to the top