Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbrooks2010-09-28 16:38:55 -0400
committerRyan D. Brooks2010-09-28 16:38:55 -0400
commit1e66acd6e60c6f68365086c1e826c29d5a8c2a62 (patch)
tree530e9aa96786c252f3fa021d614eb7388119312c /plugins/org.eclipse.osee.framework.core.dsl.ui.integration
parentbaa319306dff9e1433f70154d6bb188acc923f6d (diff)
downloadorg.eclipse.osee-1e66acd6e60c6f68365086c1e826c29d5a8c2a62.tar.gz
org.eclipse.osee-1e66acd6e60c6f68365086c1e826c29d5a8c2a62.tar.xz
org.eclipse.osee-1e66acd6e60c6f68365086c1e826c29d5a8c2a62.zip
refinement: Add coverage of presentation type PRODUCE_ATTRIBUTE to RendererManagerTest
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.dsl.ui.integration')
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslRenderer.java5
1 files changed, 3 insertions, 2 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 81925a688c..9dd8b8d740 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
@@ -12,6 +12,7 @@ package org.eclipse.osee.framework.core.dsl.ui.integration.internal;
import static org.eclipse.osee.framework.ui.skynet.render.PresentationType.DEFAULT_OPEN;
import static org.eclipse.osee.framework.ui.skynet.render.PresentationType.GENERALIZED_EDIT;
+import static org.eclipse.osee.framework.ui.skynet.render.PresentationType.PRODUCE_ATTRIBUTE;
import static org.eclipse.osee.framework.ui.skynet.render.PresentationType.SPECIALIZED_EDIT;
import java.io.ByteArrayInputStream;
import java.io.File;
@@ -74,8 +75,8 @@ public final class OseeDslRenderer extends FileSystemRenderer {
}
@Override
- public int getApplicabilityRating(PresentationType presentationType, Artifact artifact) {
- if (presentationType != GENERALIZED_EDIT && !artifact.isHistorical()) {
+ public int getApplicabilityRating(PresentationType presentationType, Artifact artifact) throws OseeCoreException {
+ if (!presentationType.matches(GENERALIZED_EDIT, PRODUCE_ATTRIBUTE) && !artifact.isHistorical()) {
if (artifact.isOfType(CoreArtifactTypes.AccessControlModel)) {
return ARTIFACT_TYPE_MATCH;
}

Back to the top