@Override public IGamlDescription getGamlDocumentation(final EObject object) { if (object == null) { return null; } // int index = getGamlDocIndex(object); // if ( index == -1 ) { return null; } URI key = getKey(object); if (key == null) { return null; } if (!CACHE2.containsKey(key)) { return null; } return CACHE2.get(key).get(EcoreUtil2.getURIFragment(object)); }
@Override public void setGamlDocumentation(final EObject object, final IGamlDescription description) { if (description == null || object == null) { return; } // int i = getIndex(); // i = setGamlDocIndex(object, i); // if ( i == -1 ) { return; } URI key = getKey(object); if (key == null) { return; } // if ( CACHE.contains(key) ) { // CACHE.get(key).put(i, getGamlDocumentation(description)); // } if (CACHE2.contains(key)) { CACHE2.get(key).put(EcoreUtil2.getURIFragment(object), getGamlDocumentation(description)); } }