@Override public void onBlipAdded(ObservableManifestBlip manifestBlip) { Blip blip = helper.getBlip(manifestBlip.getId()); if (blip != null) { // Note that this means the blip will be ignored if it doesn't exist in // the wavelet when the manifest entry is added. WaveletBasedConversationBlip convBlip = adaptBlip(manifestBlip, blip); triggerOnBlipAdded(convBlip); } }
/** * Creates a new conversation thread. * * @param manifestThread data for the thread * @param parentBlip blip to which this thread is a reply (null for root) * @param helper provides conversation components */ static WaveletBasedConversationThread create(ObservableManifestThread manifestThread, WaveletBasedConversationBlip parentBlip, WaveletBasedConversation.ComponentHelper helper) { WaveletBasedConversationThread thread = new WaveletBasedConversationThread(manifestThread, parentBlip, helper); for (ObservableManifestBlip manifestBlip : manifestThread.getBlips()) { Blip blip = helper.getBlip(manifestBlip.getId()); if (blip != null) { thread.adaptBlip(manifestBlip, blip); } } manifestThread.addListener(thread); return thread; }