diff options
author | jmisinco | 2011-10-19 18:56:36 +0000 |
---|---|---|
committer | Roberto E. Escobar | 2011-10-19 18:56:36 +0000 |
commit | 0b4e81fd31958d53671aba8076c50ba9605c5e52 (patch) | |
tree | 98332c43ad0ecffe2e01db3d29cac827c0845950 /plugins/org.eclipse.osee.display.api | |
parent | 8f0c38716aea53274f1ee6013f62fa4075b5f28b (diff) | |
download | org.eclipse.osee-0b4e81fd31958d53671aba8076c50ba9605c5e52.tar.gz org.eclipse.osee-0b4e81fd31958d53671aba8076c50ba9605c5e52.tar.xz org.eclipse.osee-0b4e81fd31958d53671aba8076c50ba9605c5e52.zip |
feature[ats_8KF8L]: Updates from peer review
Diffstat (limited to 'plugins/org.eclipse.osee.display.api')
2 files changed, 18 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/RelationComponent.java b/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/RelationComponent.java index 61477813871..bcdc6222d30 100644 --- a/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/RelationComponent.java +++ b/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/components/RelationComponent.java @@ -26,6 +26,12 @@ public interface RelationComponent extends DisplaysErrorComponent { void clearRelations(); - void addRelation(WebArtifact id); + void setLeftName(String name); + + void setRightName(String name); + + void addLeftRelated(WebArtifact id); + + void addRightRelated(WebArtifact id); }
\ No newline at end of file diff --git a/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/data/WebId.java b/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/data/WebId.java index 19c35598486..1098762c30f 100644 --- a/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/data/WebId.java +++ b/plugins/org.eclipse.osee.display.api/src/org/eclipse/osee/display/api/data/WebId.java @@ -10,6 +10,8 @@ *******************************************************************************/ package org.eclipse.osee.display.api.data; +import java.util.HashMap; +import java.util.Map; import org.eclipse.osee.framework.core.data.NamedIdentity; /** @@ -17,8 +19,17 @@ import org.eclipse.osee.framework.core.data.NamedIdentity; */ public class WebId extends NamedIdentity<String> { + Map<String, String> attributes = new HashMap<String, String>(); + public WebId(String guid, String name) { super(guid, name); } + public void setAttribute(String key, String value) { + attributes.put(key, value); + } + + public String getAttribute(String key) { + return attributes.containsKey(key) ? attributes.get(key) : null; + } } |