Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddunne2010-09-23 12:46:05 -0400
committerRyan D. Brooks2010-09-23 12:46:05 -0400
commite43bcee45f45add9b342dabc7adce2ba24a99f4f (patch)
tree4b612def8d3de44c0690ecab9e18a31e05551af9 /plugins/org.eclipse.osee.framework.core.dsl.ui.integration
parent7c92499550597d761cf27c884d43bc0da802b739 (diff)
downloadorg.eclipse.osee-e43bcee45f45add9b342dabc7adce2ba24a99f4f.tar.gz
org.eclipse.osee-e43bcee45f45add9b342dabc7adce2ba24a99f4f.tar.xz
org.eclipse.osee-e43bcee45f45add9b342dabc7adce2ba24a99f4f.zip
feature[ats_YGHW1]: Fix context id GUIDs
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/ArtifactDataAccessor.java11
1 files changed, 8 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/ArtifactDataAccessor.java b/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/ArtifactDataAccessor.java
index 150441fcd0..6ee84e41e1 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/ArtifactDataAccessor.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/ArtifactDataAccessor.java
@@ -86,9 +86,14 @@ public final class ArtifactDataAccessor implements ArtifactDataProvider {
@Override
public Collection<String> getHierarchy() {
Collection<String> hierarchy = new HashSet<String>();
- Artifact artifactPtr = artifact;
- while (artifactPtr != null) {
- hierarchy.add(artifactPtr.getGuid());
+ try {
+ Artifact artifactPtr = artifact;
+ while (artifactPtr != null) {
+ hierarchy.add(artifactPtr.getGuid());
+ artifactPtr = artifact.getParent();
+ }
+ } catch (OseeCoreException ex) {
+ OseeLog.log(Activator.class, Level.SEVERE, ex);
}
return hierarchy;
}

Back to the top