the current palette api mandates that an editor must insert a PaletteController
instance into its Lookup if it wants to associate the palette with it.
however it should be possible to associate the palette also with an existing
editor without the need to change its implementation, e.g. to add code snippets
palette to java source editor.
+1. This would be great.
+1, This would be very useful!
new api is now available, see #96798