Skip to content
Discussion options

You must be logged in to vote

@TheMicDiet Unfortunately, we do not have that example online. However, the basic idea is that the tool manager in GLSP ensures which tools are enabled or disabled. Tools can be registered as default tool or "regular" tool whereas a default tool is enabled by default (e.g., the selection tool which registers a mouse listener to adapt the selected state). This behavior can be managed through the EnableToolsAction and the EnableDefaultToolsAction.

When you click on one of the icons in the tool palette, that particular tool gets enabled and all other tools are disabled (mainly to avoid conflicts between the tools). So to get the behavior you describe, you need to register a connection tool a…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tortmayr
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