Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrescobar2011-03-09 13:57:56 -0500
committerRyan D. Brooks2011-03-09 13:57:56 -0500
commit6b7c084a21ed930d71acc97d4bea2de8891e0d80 (patch)
tree01ebc936c452326aed4ee54c72b9efd74a874b7c /plugins/org.eclipse.osee.coverage
parent15273bf7a2bdd8242c9ea3f55958ad4f7d0ebcf6 (diff)
downloadorg.eclipse.osee-6b7c084a21ed930d71acc97d4bea2de8891e0d80.tar.gz
org.eclipse.osee-6b7c084a21ed930d71acc97d4bea2de8891e0d80.tar.xz
org.eclipse.osee-6b7c084a21ed930d71acc97d4bea2de8891e0d80.zip
refactor: Change Renderer.getApplicabilityRating to use IArtifact
Diffstat (limited to 'plugins/org.eclipse.osee.coverage')
-rw-r--r--plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/editor/CoverageRenderer.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/editor/CoverageRenderer.java b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/editor/CoverageRenderer.java
index 2d9d3ab574..1a23527323 100644
--- a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/editor/CoverageRenderer.java
+++ b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/editor/CoverageRenderer.java
@@ -24,6 +24,7 @@ import org.eclipse.osee.coverage.util.CoverageImage;
import org.eclipse.osee.framework.access.AccessControlManager;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
+import org.eclipse.osee.framework.skynet.core.types.IArtifact;
import org.eclipse.osee.framework.ui.skynet.render.DefaultArtifactRenderer;
import org.eclipse.osee.framework.ui.skynet.render.PresentationType;
import org.eclipse.osee.framework.ui.swt.ImageManager;
@@ -75,9 +76,10 @@ public class CoverageRenderer extends DefaultArtifactRenderer {
}
@Override
- public int getApplicabilityRating(PresentationType presentationType, Artifact artifact) throws OseeCoreException {
- if (!presentationType.matches(GENERALIZED_EDIT, PRODUCE_ATTRIBUTE) && !artifact.isHistorical()) {
- if (artifact.isOfType(CoveragePackage, CoverageFolder, CoverageUnit)) {
+ public int getApplicabilityRating(PresentationType presentationType, IArtifact artifact) throws OseeCoreException {
+ Artifact aArtifact = artifact.getFullArtifact();
+ if (!presentationType.matches(GENERALIZED_EDIT, PRODUCE_ATTRIBUTE) && !aArtifact.isHistorical()) {
+ if (aArtifact.isOfType(CoveragePackage, CoverageFolder, CoverageUnit)) {
return PRESENTATION_SUBTYPE_MATCH;
}
}

Back to the top