But what’s happening is that hover adornment is working fine, i.e. on hover a button is displayed whereas selectionAdornment is not working. It’s neither highlighting the node, nor triggering the function called on select change. Is it something like that we cannot use both together ?
FYI - Selection adornment was working before i used hover adornment in the project.
On Ctrl+A all the adornments are shown. Click event is triggered on the click of button which appears on hover of node. But the requirement is button click event triggers something else and node select triggers something else. And the two are different.
Yes, selection and hover events are different, and you have demonstrated that they both seem to be working correctly. So could you please analyze and describe your problem more carefully and precisely?
So, the problem is that Selection event is not working as expected. I have used a function as onSelectChange which is not getting triggered since the time i have added hover functionality.
That onSelectChange was working before i used hoverAdornment in my project.
So are you saying the problem is that calling CommandHandler.selectAll or Diagram.select or changing Part.isSelected to true is not calling your Part.selectionChanged event handler or your “ChangedSelection” DiagramEvent listener?
Is your hover adornment showing before you click? If so, why don’t you have a click event handler like the Hover Buttons sample does? Buttons that show on Hover