ds = createNewDS();
changed = true;
ds.addListener(new MemoryServiceListener(){
public void schemaChanged() {
MemoryServiceImpl.this.memberList = null;
IResolveDelta delta = new ResolveDelta(MemoryServiceImpl.this,
IResolveDelta.Kind.CHANGED);
((CatalogImpl) CatalogPlugin.getDefault().getLocalCatalog())
.fire(new ResolveChangeEvent(MemoryServiceImpl.this,
IResolveChangeEvent.Type.POST_CHANGE, delta));
}
});
}
} finally {
dsInstantiationLock.unlock();
}
if (changed) {
IResolveDelta delta = new ResolveDelta(this, IResolveDelta.Kind.CHANGED);
((CatalogImpl) CatalogPlugin.getDefault().getLocalCatalog())
.fire(new ResolveChangeEvent(this, IResolveChangeEvent.Type.POST_CHANGE,
delta));
}
}