diff options
author | Roberto E. Escobar | 2013-05-23 21:00:37 +0000 |
---|---|---|
committer | Roberto E. Escobar | 2013-06-17 23:09:29 +0000 |
commit | 44d00a5571af2feb2c1bc40948e63a19f725ab36 (patch) | |
tree | b6503bfc94ee5636319b1b922bc84b1c1f7ffece | |
parent | 549fe909c75fff76d0c1a4e49265689eb7527309 (diff) | |
download | org.eclipse.osee-44d00a5571af2feb2c1bc40948e63a19f725ab36.tar.gz org.eclipse.osee-44d00a5571af2feb2c1bc40948e63a19f725ab36.tar.xz org.eclipse.osee-44d00a5571af2feb2c1bc40948e63a19f725ab36.zip |
feature[ats_QGK3T]: Add demo DSL attribute type
Change-Id: I13d982c5909f18e855849dc871fd3d8ef02e1d53
-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.osee | 15 | ||||
-rw-r--r-- | plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/integration/skynet/core/ArtifactTest.java | 4 |
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 |