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 23613

Summary: Ctrl-X and Cut menu item don't work in the component inspector
Product: platform Reporter: eadams <eadams>
Component: ExplorerAssignee: Jiri Rechtacek <jrechtacek>
Status: CLOSED DUPLICATE    
Severity: blocker CC: tpavek
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: ENHANCEMENT Exception Reporter:

Description eadams 2002-05-16 15:18:38 UTC
I selected an item in the Component Inspector (is that what its still
called?) and typed Ctrl-X to get rid of it.  Nothing happened.
I brought up the right-click menu and saw Cut with a short cut
of Ctrl-X.  I hit the Cut menu item and nothing happend.

Both the delete key and Delete menu item worked correctly.
Comment 1 Tomas Pavek 2002-05-16 16:06:44 UTC
This is not a bug. Cut is not intended to remove the 
component, the component is just moved when Paste is 
invoked - similarly to how it works in Explorer.
Comment 2 eadams 2002-05-16 17:09:50 UTC
Ok, I understand that nothing happens until a paste is done.
That was my mistake.

However, there needs to be SOME feedback that the operation
has not been ignored.  In Windows Explorer, the name is 
greyed out until the Paste or the Cut becomes invalid.
We should do something similar.  Sounds like the Explorer
should too.
Comment 3 Tomas Pavek 2002-05-16 17:29:00 UTC
I'm not quite persuaded that there should be some feedback 
for Cut operation. You have it neither for Copy - and you 
probably don't think it has been ignored. Or should there 
be some feedback for both operations? The main problem 
with marking the nodes (e.g. graying them out) is that the 
user cannot simply get rid of it - the node is marked 
although nothing happened with it, and if the user does 
not invoke Paste, the marking remains forever.

Anyway, this is an RFE, not defect. And it should be 
decided on more general level than in form editor. I'm 
reaasigning to openide - someone could have other or 
better ideas.
Comment 4 eadams 2002-05-16 18:39:18 UTC
Let me bring up Windows Explorer again.  It gives
feedback for Cut and no feedback for Copy.  It 
has an algorithm for un-greyng the item that includes
doing a Paste and also changing the current directory.
I don't know if there is an analogy to the current
directory for the Form Editor.
Comment 5 Marek Grummich 2002-07-22 11:24:33 UTC
Set target milestone to TBD
Comment 6 Marek Grummich 2002-07-22 11:27:28 UTC
Set target milestone to TBD
Comment 7 Petr Hrebejk 2002-07-26 12:28:28 UTC
Marking cutted items seems to be more an Explorer or Explorer.view 
issue. 
Comment 8 Jiri Rechtacek 2002-07-26 13:38:43 UTC

*** This issue has been marked as a duplicate of 16339 ***
Comment 9 Marian Mirilovic 2003-07-22 09:51:34 UTC
verified, closed - it's duplicate