diff -r 9152bc6fef39 spi.palette/apichanges.xml --- a/spi.palette/apichanges.xml Tue Apr 22 10:39:01 2008 +0200 +++ b/spi.palette/apichanges.xml Thu Apr 24 16:16:48 2008 +0200 @@ -312,6 +312,31 @@ + + + Allowing user dropping text into the palette to create new custom code clips. + + + + + +

+ 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 class + 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. +

+
+ + +
+