Skip to content

CommandPaletteActionProvider - how to group entries? #550

Answered by planger
rsoika asked this question in Q&A
Discussion options

You must be logged in to vote

The command palette action provider is used to specify the actions shown in the palette that opens up on Ctrl+Space. In the GLSP code, the palette shown in your screenshot is called tool palette and its items are provided by an implementation of the ToolPaletteItemProvider.

The DefaultToolPaletteItemProvider collects all registered instances of CreateNodeOperationHandler and CreateEdgeOperationHandler and shows them in the group Nodes and Edges respectively. This is what you see in your screenshot.

If you want to provide custom grouping, you'll have to bind a custom ToolPaletteItemProvider.

   @Override
   protected Class<? extends ToolPaletteItemProvider> bindToolPaletteItemProvider() {
…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rsoika
Comment options

Answer selected by rsoika
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