Skip to content
Discussion options

You must be logged in to vote

Hi @Abhay0294

Please note that in GLSP we already use a custom mouse tool, the RankingMouseTool if you use the glspMouseToolModule. In that case it would be better for you to rebind that as well instead of only the MouseTool.

I think in your case registering your action as a mouse listener and injecting the MousePositionTracker (for the lastPositionOnDiagram) should be enough. The original mouse tool singleton will notify all registered mouse listeners and already has a proper binding for double click. So you can simply do bind(TYPES.MouseListener).to(HideNodeAction) and implement that interface instead. However, if you really do rebind the mouse tool, you probably need to call super.deco…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Abhay0294
Comment options

@martin-fleck-at
Comment options

@Abhay0294
Comment options

@martin-fleck-at
Comment options

@Abhay0294
Comment options

Answer selected by Abhay0294
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants