edit.startEditing(blipUi);
}
@Override
public void popupLink(BlipView blipUi) {
ConversationBlip blip = views.getBlip(blipUi);
// TODO(Yuri Z.) Change to use the conversation model when the Conversation
// exposes a reference to its ConversationView.
WaveId waveId = blip.hackGetRaw().getWavelet().getWaveId();
WaveletId waveletId;
try {
waveletId = DualIdSerialiser.MODERN.deserialiseWaveletId(blip.getConversation().getId());
} catch (InvalidIdException e) {
Window.alert(
"Unable to link to this blip, invalid conversation id " + blip.getConversation().getId());
return;
}
WaveRef waveRef = WaveRef.of(waveId, waveletId, blip.getId());
final String waveRefStringValue =
WaveRefConstants.WAVE_URI_PREFIX + GwtWaverefEncoder.encodeToUriPathSegment(waveRef);
BlipLinkPopupView blipLinkPopupView = blipUi.createLinkPopup();
blipLinkPopupView.setLinkInfo(waveRefStringValue);
blipLinkPopupView.show();