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 56854 - Drag and Drop of classes displays sometimes many Move Class dialogs
Summary: Drag and Drop of classes displays sometimes many Move Class dialogs
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2005-03-23 12:42 UTC by ehucka
Modified: 2008-12-22 18:53 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2005-03-23 12:42:08 UTC
Sometimes when I select classes from a package and drag them into a next package
it displays one Move Class dialog per one moved class except Move Classes dialog
with list of classes.
Comment 1 Jan Becicka 2005-03-23 14:06:29 UTC
It is regression caused by issue 55160.
Nodes in Explorer are not selected after DND operation.
Comment 2 Petr Nejedly 2005-03-23 15:18:00 UTC
Yarda asked me for some fun issue, so passing this one...
Comment 3 Jaroslav Tulach 2005-03-24 08:14:02 UTC
Before I move the issue to refactoring, I'd like to get explanation why minor
problem in selecting of nodes after dnd which itself is p5 causes problem with
Move Class dialogs. What you are doing and why do you think you are doing the
right thing?
Comment 4 Jan Becicka 2005-03-24 09:36:55 UTC
We are definitely not doing the right thing. We know about it. We want to
redesign it for future releases. But we cannot do it for 4.1. It is too late.

We need nodes to be correctly selected after DnD to correctly invoke one Move
Classes Refactoring for several classes and not to invoke several Move Class
refactoring for each file.

I know, that incorrect node selection is P5. But if you will be so kind and fix
this (easy-to-fix I hope) P5 bug, refactoring p2 bug will be fixed as well.

Thanks.
Comment 5 Jaroslav Tulach 2005-03-24 10:40:47 UTC
cvs ci -m "#56854: Reverting fix for issue 55160 - e.g. drop is done
synchronously. Bad, but better than broken refactoring. I'll find a different
way to move the drop out of AWT event thread"

Anyway please explain what events refactoring expects, so I know how to
guarantee their correct delivery.

cvs commit: Examining .
Checking in DataTransferSupport.java;
/cvs/openide/loaders/src/org/openide/loaders/DataTransferSupport.java,v  <-- 
DataTransferSupport.java
new revision: 1.7; previous revision: 1.6
Comment 6 Jan Becicka 2005-03-24 10:52:57 UTC
We expect to have dragged nodes in activatedNodes during and after DnD operation.
Comment 7 ehucka 2005-07-12 10:16:48 UTC
verified