new ResourceSetAvatarResourceSetsPresenter(
allResourcesDragAvatarFactory),
new ResourceSetAvatarResourceSetsPresenter(
userSetsDragAvatarFactory), resourceModel);
DefaultSelectionModel selectionModel = new DefaultSelectionModel(
selectionModelLabelFactory, resourceSetFactory);
DefaultSelectionModelPresenter selectionModelPresenter = new DefaultSelectionModelPresenter(
new ResourceSetAvatarResourceSetsPresenter(dropTargetFactory),
new ResourceSetAvatarResourceSetsPresenter(
selectionDragAvatarFactory), selectionModel);
Map<Slot, VisualItemValueResolver> fixedSlotResolvers = viewContentDisplayConfiguration
.getFixedSlotResolvers(contentType);
CompositeVisualItemBehavior visualItemBehaviors = new CompositeVisualItemBehavior();
// visualItemBehaviors.add(new ViewInteractionLogger(logger));
visualItemBehaviors.add(new HighlightingVisualItemBehavior(hoverModel));
visualItemBehaviors.add(new DragVisualItemBehavior(dragEnablerFactory));
visualItemBehaviors.add(new PopupWithHighlightingVisualItemBehavior(
detailsWidgetHelper, popupManagerFactory, hoverModel));
visualItemBehaviors.add(new SwitchSelectionOnClickVisualItemBehavior(
selectionModel, commandManager));
SlotMappingInitializer slotMappingInitializer = createSlotMappingInitializer(contentType);
ResourceMultiCategorizer categorizer = createDefaultCategorizer(contentType);
VisualizationModel visualizationModel = new FixedSlotResolversVisualizationModelDecorator(
new DefaultVisualizationModel(contentDisplay,
selectionModel.getSelectionProxy(),
hoverModel.getResources(), visualItemBehaviors,
errorHandler, new DefaultResourceSetFactory(),
categorizer), fixedSlotResolvers);
visualizationModel.setContentResourceSet(resourceModel.getResources());