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.

View | Details | Raw Unified | Return to bug 133840
Collapse All | Expand All

(-)a/spi.palette/apichanges.xml (+25 lines)
Lines 312-317 Link Here
312
        <issue number="62964"/>
312
        <issue number="62964"/>
313
    </change>      
313
    </change>      
314
    
314
    
315
    <change id="support-text-dnd" >
316
        <api name="palette_api"/>
317
        <summary>Allowing user dropping text into the palette to create new custom code clips.</summary>
318
        <version major="1" minor="14"/>
319
        <date day="24" month="4" year="2008"/>
320
        <author login="saubrecht"/>
321
        <compatibility addition="yes" binary="compatible" deletion="no" semantic="compatible" deprecation="no" modification="no" source="compatible"/>
322
        <description>
323
            <p>
324
                If the Common Palette is associated with a text editor then it's desired to allow
325
                users dragging and dropping text into the palette to create new custom code clips that
326
                can be dropped into editor later on.
327
            </p>
328
            <p>
329
                That can be achieved simply by subclassing the default DragAndDropHandler class 
330
                which manages all DragAndDrop-related operations in the Common Palette and turning
331
                the text dnd support in superclasses's constructor on. The default implementation
332
                pops up a dialog window when some text is dropped into the palette where user enters
333
                code clip name and tooltip and optionally selects appropriate icons.
334
            </p>
335
        </description>
336
        <class package="org.netbeans.spi.palette" name="DragAndDropHandler"/>
337
        <issue number="93002"/>
338
    </change>      
339
    
315
</changes>
340
</changes>
316
  
341
  
317
    <!-- Now the surrounding HTML text and document structure: -->
342
    <!-- Now the surrounding HTML text and document structure: -->

Return to bug 133840