Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2016-06-27 21:12:34 +0000
committerRyan D. Brooks2016-07-29 06:18:28 +0000
commit0ff6aba5036081c457be0ecff42f3c4f3feb543f (patch)
tree8b13d7a05cf3fbdb64247cd69040b47e940cb471 /plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org
parent318b5413f15d3e014e23a790043e8b9b1202ac73 (diff)
downloadorg.eclipse.osee-0ff6aba5036081c457be0ecff42f3c4f3feb543f.tar.gz
org.eclipse.osee-0ff6aba5036081c457be0ecff42f3c4f3feb543f.tar.xz
org.eclipse.osee-0ff6aba5036081c457be0ecff42f3c4f3feb543f.zip
feature[ats_ATS286643]: HLR - Implement Types Versioning
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/OseeDslRenderer.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslRenderer.java b/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslRenderer.java
index d440c5355a1..de1b29eb66c 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslRenderer.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslRenderer.java
@@ -32,8 +32,10 @@ import org.eclipse.osee.framework.ui.skynet.render.PresentationType;
* @author Roberto E. Escobar
*/
public final class OseeDslRenderer extends AbstractDslRenderer {
- private static final IArtifactType[] MATCHING_ARTIFACT_TYPES =
- {CoreArtifactTypes.AccessControlModel, CoreArtifactTypes.OseeTypeDefinition};
+ private static final IArtifactType[] MATCHING_ARTIFACT_TYPES = {
+ CoreArtifactTypes.AccessControlModel,
+ CoreArtifactTypes.OseeTypeDefinition,
+ CoreArtifactTypes.OseeTypeDefinitionTemp};
private static final OseeDslSegmentParser parser = new OseeDslSegmentParser();
@@ -57,7 +59,8 @@ public final class OseeDslRenderer extends AbstractDslRenderer {
Artifact artifact = artifacts.iterator().next();
String data;
- if (artifact.isOfType(CoreArtifactTypes.OseeTypeDefinition)) {
+ if (artifact.isOfType(CoreArtifactTypes.OseeTypeDefinition) || artifact.isOfType(
+ CoreArtifactTypes.OseeTypeDefinitionTemp)) {
data = artifact.getSoleAttributeValueAsString(CoreAttributeTypes.UriGeneralStringData, "");
} else {
StringBuilder builder = new StringBuilder();
@@ -80,7 +83,8 @@ public final class OseeDslRenderer extends AbstractDslRenderer {
protected IOperation getUpdateOperation(File file, List<Artifact> artifacts, BranchId branch, PresentationType presentationType) {
IOperation op;
Artifact artifact = artifacts.iterator().next();
- if (artifact.isOfType(CoreArtifactTypes.OseeTypeDefinition)) {
+ if (artifact.isOfType(CoreArtifactTypes.OseeTypeDefinition) || artifact.isOfType(
+ CoreArtifactTypes.OseeTypeDefinitionTemp)) {
OseeTypeModifier modifier = new OseeTypeModifier();
op = new FileToAttributeUpdateOperation(file, artifacts.get(0), CoreAttributeTypes.UriGeneralStringData,
modifier);

Back to the top