This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
If the Common Palette is associated with a text editor then it's desired to allow users dragging and dropping text into the palette to create new custom code clips that can be dropped into editor later on. That can be achieved simply by subclassing the default DragAndDropHandler which manages all DragAndDrop-related operations in the Common Palette and turning the text dnd support in superclasses's constructor on. The default implementation pops up a dialog window when some text is dropped into the palette where user enters code clip name and tooltip and optionally selects appropriate icons.
Created attachment 60655 [details] api changes
Created attachment 60656 [details] DragAndDropHandler
Created attachment 60657 [details] DragAndDropHandlerTest
if there are no objections, i'll integrate this feature on monday, may 5th
integrated in core-main 555b87cdb4af
verified in M1