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 - Allow user to drop text into the palette to create new custom code clips
Summary: Allow user to drop text into the palette to create new custom code clips
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Palette (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: API_REVIEW_FAST
Depends on:
Blocks: 93002
  Show dependency tree
 
Reported: 2008-04-24 14:03 UTC by Stanislav Aubrecht
Modified: 2008-12-22 14:48 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
api changes (1.75 KB, patch)
2008-04-24 15:19 UTC, Stanislav Aubrecht
Details | Diff
DragAndDropHandler (3.49 KB, patch)
2008-04-24 15:21 UTC, Stanislav Aubrecht
Details | Diff
DragAndDropHandlerTest (2.13 KB, patch)
2008-04-24 15:23 UTC, Stanislav Aubrecht
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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