Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Philipp Steghöfer2019-08-20 09:20:41 +0000
committerJan-Philipp Steghöfer2019-08-21 11:23:57 +0000
commit739a904b3f22672c7556f0c73a457aea8474ad96 (patch)
tree1fb444c9a2e92ad6e7653c6d373ea666b39fefe4
parentb740d0557deea27a2c1744d769b232d847951c5e (diff)
downloadorg.eclipse.capra-739a904b3f22672c7556f0c73a457aea8474ad96.tar.gz
org.eclipse.capra-739a904b3f22672c7556f0c73a457aea8474ad96.tar.xz
org.eclipse.capra-739a904b3f22672c7556f0c73a457aea8474ad96.zip
Fixed calculation of transitivity depth for generic trace meta model
The visualisations did not display the correct depth of transitive links since the calculation of how deep to go depended on a constant that was set to -2. That meant that there were always at least three levels of transitive links explored. This commit changes this default to 1 which produces the expected behaviour in the visualisation.
-rw-r--r--bundles/org.eclipse.capra.generic.tracemodel/src/org/eclipse/capra/generic/tracemodel/GenericMetaModelAdapter.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/bundles/org.eclipse.capra.generic.tracemodel/src/org/eclipse/capra/generic/tracemodel/GenericMetaModelAdapter.java b/bundles/org.eclipse.capra.generic.tracemodel/src/org/eclipse/capra/generic/tracemodel/GenericMetaModelAdapter.java
index 65caa7c2..43d9b73d 100644
--- a/bundles/org.eclipse.capra.generic.tracemodel/src/org/eclipse/capra/generic/tracemodel/GenericMetaModelAdapter.java
+++ b/bundles/org.eclipse.capra.generic.tracemodel/src/org/eclipse/capra/generic/tracemodel/GenericMetaModelAdapter.java
@@ -24,10 +24,6 @@ import org.eclipse.capra.core.adapters.TraceMetaModelAdapter;
import org.eclipse.capra.core.adapters.TracePersistenceAdapter;
import org.eclipse.capra.core.helpers.ArtifactHelper;
import org.eclipse.capra.core.helpers.ExtensionPointHelper;
-import org.eclipse.capra.generic.tracemodel.GenericTraceModel;
-import org.eclipse.capra.generic.tracemodel.RelatedTo;
-import org.eclipse.capra.generic.tracemodel.TracemodelFactory;
-import org.eclipse.capra.generic.tracemodel.TracemodelPackage;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.EClass;
@@ -46,7 +42,7 @@ public class GenericMetaModelAdapter extends AbstractMetaModelAdapter implements
private static final Logger LOG = LoggerFactory.getLogger(GenericMetaModelAdapter.class);
- private static final int DEFAULT_INITIAL_TRANSITIVITY_DEPTH =-2;
+ private static final int DEFAULT_INITIAL_TRANSITIVITY_DEPTH = 1;
public GenericMetaModelAdapter() {
// TODO Auto-generated constructor stub

Back to the top