http://argouml.tigris.org/issues/show_bug.cgi?id=5017
------- Additional comments from [email protected] Wed Aug 31 00:04:50 -0700 2011 -------
After changing your code in the following way, I also solved the problem for user-definied-profiles.
My modifications are caused by the absence of the original element in the diagram - are there any side-
effects based on that modification(s)?
Old:
startsWith("file:/tmp/zargo_model_")
New:
startsWith("http://argouml.org")
XmiReaderImpl:
public Map<String, Object> getXMIUUIDToObjectMap() {
if (resolver != null) {
Map<String, Map<String, Object>> idToObjectMaps = resolver
.getIdToObjectMaps();
Set<Entry<String, Map<String, Object>>> entrySet = null;
synchronized (idToObjectMaps) {
entrySet = new HashSet<Entry<String, Map<String, Object>>>(
idToObjectMaps.entrySet());
for (Entry<String, Map<String, Object>> entry : entrySet) {
entry.setValue(new HashMap<String, Object>(entry.getValue()));
}
}
HashMap<String, Object> globalXmiIdToObjectMap = new HashMap<String, Object>();
for (Entry<String, Map<String, Object>> entry : entrySet) {
String xmiIdPrefix = !entry.getKey().startsWith(
"http://argouml.org") ? "" : entry.getKey() + "#";
for (Map.Entry<String, Object> innerMapEntry : entry.getValue()
.entrySet()) {
globalXmiIdToObjectMap.put(
xmiIdPrefix + innerMapEntry.getKey(),
innerMapEntry.getValue());
}
}
return globalXmiIdToObjectMap;
}
return null;
}
FacadeMDRImpl:
public Map<String, Object> getXMIUUIDToObjectMap() {
if (resolver != null) {
Map<String, Map<String, Object>> idToObjectMaps = resolver
.getIdToObjectMaps();
Set<Entry<String, Map<String, Object>>> entrySet = null;
synchronized (idToObjectMaps) {
entrySet = new HashSet<Entry<String, Map<String, Object>>>(
idToObjectMaps.entrySet());
for (Entry<String, Map<String, Object>> entry : entrySet) {
entry.setValue(new HashMap<String, Object>(entry.getValue()));
}
}
HashMap<String, Object> globalXmiIdToObjectMap = new HashMap<String, Object>();
for (Entry<String, Map<String, Object>> entry : entrySet) {
String xmiIdPrefix = !entry.getKey().startsWith(
"http://argouml.org") ? "" : entry.getKey() + "#";
for (Map.Entry<String, Object> innerMapEntry : entry.getValue()
.entrySet()) {
globalXmiIdToObjectMap.put(
xmiIdPrefix + innerMapEntry.getKey(),
innerMapEntry.getValue());
}
}
return globalXmiIdToObjectMap;
}
return null;
}
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=448&dsMessageId=2833271
To unsubscribe from this list, e-mail: [[email protected]].
Please do not reply to this mail. Instead, add your comments in the issue.
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.