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 74737

Summary: D&D ability in the Navigator window
Product: platform Reporter: dpavlica <dpavlica>
Component: NavigatorAssignee: David Simonek <dsimonek>
Status: RESOLVED INVALID    
Severity: blocker CC: jdinga
Priority: P3 Keywords: UI
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 93713    

Description dpavlica 2006-04-10 16:46:56 UTC
We try to merge Outline window with the Navigator in Creator and we need 
Drag&Drop in the Navigator window for reordering items inside.
Comment 1 David Simonek 2006-04-10 17:18:40 UTC
DnD *is enabled* in navigator. All navigator panels are regular AWT and Swing
components. So DnD works exactly the same way as in other AWT or Swing app/demo.

This means that guys in Creator will be able to activate DnD on their navigator
panel using standard DnD programming, explained in JDK javadoc of awt.dnd
package. There is no need for special support, AFAIK.

Please reopen with more details if I got smt wrong, thanks.  
Comment 2 dpavlica 2006-04-11 17:43:58 UTC
I know, but it seems logical to have it consistent in the Navigator in Netbeans too.
I remember it was implemented there at the start and then the "reordering ability by D&D" was removed. 
Might I ask what was the reason for removing it?
Comment 3 David Simonek 2007-03-14 20:45:59 UTC
This is misunderstanding, we are talking about different things...

Anyway:

- D&D for reordering in *java source* navigation is wrong idea, because methods
and fields are not sorted in navigator tree like in the source itself. So
dragging will produce undefined and unacceptable results.

- D&D in "Outline" view or any other view from visual web component is possible,
and must be implemented directly by the Outline component, as described in my
first response.

Closing as invalid, hopefully now it's all clear.