Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbroberts2018-10-11 17:26:25 +0000
committerDavid Miller2018-10-17 23:18:20 +0000
commitf202ceffa3387d9a48e98358ba6d8d6b72082606 (patch)
tree1d488eccf3f2a1ed4fc4d28f3e4022e37768ebf5 /plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org
parentb79cda0ca152396295adb542c4f01cfc43ecebe6 (diff)
downloadorg.eclipse.osee-f202ceffa3387d9a48e98358ba6d8d6b72082606.tar.gz
org.eclipse.osee-f202ceffa3387d9a48e98358ba6d8d6b72082606.tar.xz
org.eclipse.osee-f202ceffa3387d9a48e98358ba6d8d6b72082606.zip
refactor: Remove OseeTypeDefinitionTemp from the CoreArtifactTypes
Change-Id: Ieb7817f03f13927043d1cad7042c6cf109b8e54b Signed-off-by: broberts <baily.e.roberts@boeing.com>
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, 4 insertions, 8 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 ccd86be1bb3..51a6d72b65b 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,10 +32,8 @@ import org.eclipse.osee.framework.ui.skynet.render.FileToAttributeUpdateOperatio
* @author Roberto E. Escobar
*/
public final class OseeDslRenderer extends AbstractDslRenderer {
- private static final IArtifactType[] MATCHING_ARTIFACT_TYPES = {
- CoreArtifactTypes.AccessControlModel,
- CoreArtifactTypes.OseeTypeDefinition,
- CoreArtifactTypes.OseeTypeDefinitionTemp};
+ private static final IArtifactType[] MATCHING_ARTIFACT_TYPES =
+ {CoreArtifactTypes.AccessControlModel, CoreArtifactTypes.OseeTypeDefinition};
private static final OseeDslSegmentParser parser = new OseeDslSegmentParser();
@@ -59,8 +57,7 @@ public final class OseeDslRenderer extends AbstractDslRenderer {
Artifact artifact = artifacts.iterator().next();
String data;
- if (artifact.isOfType(CoreArtifactTypes.OseeTypeDefinition) || artifact.isOfType(
- CoreArtifactTypes.OseeTypeDefinitionTemp)) {
+ if (artifact.isOfType(CoreArtifactTypes.OseeTypeDefinition)) {
data = artifact.getSoleAttributeValueAsString(CoreAttributeTypes.UriGeneralStringData, "");
} else {
StringBuilder builder = new StringBuilder();
@@ -83,8 +80,7 @@ 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) || artifact.isOfType(
- CoreArtifactTypes.OseeTypeDefinitionTemp)) {
+ if (artifact.isOfType(CoreArtifactTypes.OseeTypeDefinition)) {
OseeTypeModifier modifier = new OseeTypeModifier();
op = new FileToAttributeUpdateOperation(file, artifacts.get(0), CoreAttributeTypes.UriGeneralStringData,
modifier);

Back to the top