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.
<issue number="62964"/>
</change>
<change id="support-text-dnd" >
<api name="palette_api"/>
<summary>Allowing user dropping text into the palette to create new custom code clips.</summary>
<version major="1" minor="14"/>
<date day="24" month="4" year="2008"/>
<author login="saubrecht"/>
<compatibility addition="yes" binary="compatible" deletion="no" semantic="compatible" deprecation="no" modification="no" source="compatible"/>
<description>
<p>
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.
</p>
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.
</description>
<class package="org.netbeans.spi.palette" name="DragAndDropHandler"/>
<issue number="93002"/>
</changes>
<!-- Now the surrounding HTML text and document structure: -->