* @param result
*
*/
private void showMap(final MindMap result) {
MindNotesViewerUI ui = new MindNotesViewerUI();
final MindMapViewer presenter = new MindMapViewer();
presenter.setView(ui.getMindMapView());
ui.setMapTitle(result.getTitle());
RootLayoutPanel.get().add(ui);
DOM.getElementById("loader").removeFromParent();
final MindMap mindMap = new MindMap();
mindMap.setTitle("Viewer");
mindMap.getRootNode().setText("Viewer Mindmap");
DeferredCommand.addCommand(new Command() {
@Override
public void execute() {
presenter.setMindMap(result);
}
});
}