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.

Bug 133840

Summary: Allow user to drop text into the palette to create new custom code clips
Product: platform Reporter: Stanislav Aubrecht <saubrecht>
Component: PaletteAssignee: Stanislav Aubrecht <saubrecht>
Status: VERIFIED FIXED    
Severity: blocker CC: pchytil
Priority: P2 Keywords: API_REVIEW_FAST
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 93002    
Attachments: api changes
DragAndDropHandler
DragAndDropHandlerTest

Description Stanislav Aubrecht 2008-04-24 14:03:11 UTC
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.
Comment 1 Stanislav Aubrecht 2008-04-24 15:19:22 UTC
Created attachment 60655 [details]
api changes
Comment 2 Stanislav Aubrecht 2008-04-24 15:21:43 UTC
Created attachment 60656 [details]
DragAndDropHandler
Comment 3 Stanislav Aubrecht 2008-04-24 15:23:44 UTC
Created attachment 60657 [details]
DragAndDropHandlerTest
Comment 4 Stanislav Aubrecht 2008-05-02 18:16:00 UTC
if there are no objections, i'll integrate this feature on monday, may 5th
Comment 5 Stanislav Aubrecht 2008-05-05 21:25:17 UTC
integrated in core-main

555b87cdb4af
Comment 6 Lukas Hasik 2008-07-01 10:25:03 UTC
verified in M1