77 |
cac.addObs(o); |
cac.addObs(o); |
78 |
return cac.value; |
return cac.value; |
79 |
} |
} |
|
|
|
|
|
|
|
// AAaarrgghh, tried to find a few hours to how to set nodes dirty |
|
|
// mudyc, XXX |
|
|
public void makeAllDirty(Object node) { |
|
|
CacheEntry cac = (CacheEntry)cache.get(node); |
|
|
if(cac == null) { |
|
|
cac = new CacheEntry(); |
|
|
cac.node = node; |
|
|
cache.put(node, cac); |
|
|
} |
|
|
|
|
|
Iterator it = cache.entrySet().iterator(); |
|
|
while(it.hasNext()) { |
|
|
Map.Entry entry = (Map.Entry) it.next(); |
|
|
Object o = cache.get(entry.getKey()); |
|
|
CacheEntry ce = (CacheEntry)o; |
|
|
ce.value = DIRTY; |
|
|
cache.put(ce.node, ce); |
|
|
} |
|
|
} |
|
80 |
} |
} |