Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan D. Brooks2016-10-31 19:46:24 +0000
committerDavid W. Miller2016-10-31 19:46:24 +0000
commit998a0d1634b94ad8683bfc369a817720a85d7323 (patch)
treea46482fd510c280d2fe4b158ddf2c518544ede25 /plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org
parentde4ba34908b069122aa95ecbd602978b9973a888 (diff)
downloadorg.eclipse.osee-998a0d1634b94ad8683bfc369a817720a85d7323.tar.gz
org.eclipse.osee-998a0d1634b94ad8683bfc369a817720a85d7323.tar.xz
org.eclipse.osee-998a0d1634b94ad8683bfc369a817720a85d7323.zip
refactor: Remove IArtifact usage from IRenderer
- Another step towards deleting the IArtifact interface which no longer contains any methods. Its super interface IBasicArtifact will also be deleted. ArtifactToken will be used instead. Change-Id: I2a13fb7a4cf9fa346986fcc54083757ca8126ac7
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/AbstractDslRenderer.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/AbstractDslRenderer.java b/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/AbstractDslRenderer.java
index edbfcb6e098..9566b3a668f 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/AbstractDslRenderer.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/AbstractDslRenderer.java
@@ -29,7 +29,6 @@ import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
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.ArtifactImageManager;
import org.eclipse.osee.framework.ui.skynet.MenuCmdDef;
import org.eclipse.osee.framework.ui.skynet.render.DefaultArtifactRenderer;
@@ -105,10 +104,9 @@ public abstract class AbstractDslRenderer extends FileSystemRenderer {
}
@Override
- public int getApplicabilityRating(PresentationType presentationType, IArtifact artifact, Object... objects) throws OseeCoreException {
- Artifact aArtifact = artifact.getFullArtifact();
- if (!presentationType.matches(GENERALIZED_EDIT, PRODUCE_ATTRIBUTE) && !aArtifact.isHistorical()) {
- if (aArtifact.isOfType(getArtifactTypeMatches())) {
+ public int getApplicabilityRating(PresentationType presentationType, Artifact artifact, Object... objects) throws OseeCoreException {
+ if (!presentationType.matches(GENERALIZED_EDIT, PRODUCE_ATTRIBUTE) && !artifact.isHistorical()) {
+ if (artifact.isOfType(getArtifactTypeMatches())) {
return ARTIFACT_TYPE_MATCH;
}
}

Back to the top