Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan D. Brooks2018-08-19 04:54:52 +0000
committerRyan D. Brooks2020-12-15 22:28:17 +0000
commit1c9c4ea9a596c418017de6d88af1e00cc394c958 (patch)
tree4ba4c7fd0f5ca2a61748112eb8b01926e2d8cfef
parent8cedb0599dcc5bde136fbf9eb0d6a8360b3cbdfb (diff)
downloadorg.eclipse.osee-1c9c4ea9a596c418017de6d88af1e00cc394c958.tar.gz
org.eclipse.osee-1c9c4ea9a596c418017de6d88af1e00cc394c958.tar.xz
org.eclipse.osee-1c9c4ea9a596c418017de6d88af1e00cc394c958.zip
refactor: Remove usage of deprecated artifact.getAttributes
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/Artifact.java4
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/render/dsl/AbstractDslWordMlCreator.java6
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/Artifact.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/Artifact.java
index b541f3ae007..34da6b0f9b8 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/Artifact.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/Artifact.java
@@ -1639,6 +1639,10 @@ public class Artifact extends NamedIdBase implements ArtifactToken, Adaptable, F
ensureAttributesLoaded();
return getAttributes(attributeType).size();
}
+
+ public final boolean hasAttribute(IAttributeType attributeType) {
+ return getAttributeCount(attributeType) != 0;
+ }
/**
* Return relations that exist between artifacts
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/render/dsl/AbstractDslWordMlCreator.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/render/dsl/AbstractDslWordMlCreator.java
index 5539329f70c..de9a880cf3d 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/render/dsl/AbstractDslWordMlCreator.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/render/dsl/AbstractDslWordMlCreator.java
@@ -14,7 +14,6 @@
package org.eclipse.osee.framework.ui.skynet.render.dsl;
import org.eclipse.osee.framework.core.enums.PresentationType;
-import org.eclipse.osee.framework.skynet.core.artifact.Attribute;
/**
@@ -75,7 +74,4 @@ public abstract class AbstractDslWordMlCreator {
return textString;
}
-
- public abstract boolean isArtifactAttribute(Attribute<?> attribute);
-
-}
+} \ No newline at end of file

Back to the top