Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrescobar2011-03-09 18:57:56 +0000
committerRyan D. Brooks2011-03-09 18:57:56 +0000
commit6b7c084a21ed930d71acc97d4bea2de8891e0d80 (patch)
tree01ebc936c452326aed4ee54c72b9efd74a874b7c /plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src
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.framework.core.dsl.ui.integration/src')
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslRenderer.java8
1 files changed, 5 insertions, 3 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 89c643842ed..23806d17c10 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,6 +32,7 @@ import org.eclipse.osee.framework.core.operation.IOperation;
import org.eclipse.osee.framework.logging.OseeLevel;
import org.eclipse.osee.framework.logging.OseeLog;
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.FileSystemRenderer;
import org.eclipse.osee.framework.ui.skynet.render.PresentationType;
@@ -60,9 +61,10 @@ public final class OseeDslRenderer extends FileSystemRenderer {
}
@Override
- public int getApplicabilityRating(PresentationType presentationType, Artifact artifact) throws OseeCoreException {
- if (!presentationType.matches(GENERALIZED_EDIT, PRODUCE_ATTRIBUTE) && !artifact.isHistorical()) {
- if (artifact.isOfType(CoreArtifactTypes.AccessControlModel)) {
+ 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(CoreArtifactTypes.AccessControlModel)) {
return ARTIFACT_TYPE_MATCH;
}
}

Back to the top