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 113357 - Unable to Delete XML Element first time
Summary: Unable to Delete XML Element first time
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-21 14:57 UTC by Michael Nazarov
Modified: 2016-07-07 09:56 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (8.93 KB, image/png)
2007-08-22 16:06 UTC, Michael Nazarov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Nazarov 2007-08-21 14:57:08 UTC
Product Version: NetBeans IDE Dev (Build 200708210000)

First time right-click in Design view brings on menu with disabled item Delete.
Next clicks works fine.

Steps to reproduce

1. Create BluePrint1 Sample and BPEL module.
2. Add to Module sample Loan Application Schema.
3. Add to Sample reference to Module.
4. Open purchaseOrder and import reference to newLoanApplication.
5. Add two Elements to purchaseOrder using Complex type from newLoanApplication.
6. Go to source code view.
7. Remove first line with Elements and immediately switch to Design view.
8. Removed Element will disappear from Design view in few seconds.
9. Right-click on second Element which is still presents.

You'll see context menu with disabled Delete item. Right-click again -- everything fine.

Note: if you deside to remove Element from schema view, not from source, issues will not reproduce.
Comment 1 Sonali Kochar 2007-08-21 23:21:23 UTC
I dont see this issue. Secondly, if you do see this bug which goes away with second click or few secs, how is this a P2?
Comment 2 Michael Nazarov 2007-08-22 10:19:42 UTC
You did not understand or I was not clear enough :)
Yes, deleted Element gone in few seconds -- this is NOT a bug.
After first Element gone you should right-click on second Element. Delete menu item disabled -- this IS bug.
Comment 3 Sonali Kochar 2007-08-22 15:57:25 UTC
I understood the issue and I am not talking about first element. After deleting First element, I switch to the DV view,
see the First element disappear in few secs. After that I right-click on second Element and see the Delete menu item.
Its not disabled.
I cannot see the bug. My question to you was since the Delete menu item comes back to you on second-click or few secs,
what is user unable to do? how is this justified to be a p2?
Comment 4 Michael Nazarov 2007-08-22 16:06:30 UTC
Created attachment 47076 [details]
screenshot
Comment 5 Michael Nazarov 2007-08-22 16:07:59 UTC
I able to reproduce as many time as I tried to.

Did you delete element using source view or schema view?

There is workaround (second time right click), so this is not P1.
Comment 6 Sonali Kochar 2007-08-22 17:14:28 UTC
Tony, please can you take a look at this bug?
Comment 7 tonybeckham 2007-08-22 20:18:39 UTC
Product Version: NetBeans IDE Dev (Build 200708210000) 
Java: 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105 
System: Linux version 2.6.20-16-generic running on i386; UTF-8; en_US (nb)

I was unable to reproduce this also.

Steps:
-Create BluePrint1 sample project
-rightclick BluePrint1 module -> select new Loan sample schema
-open Purchase Order Schema
-add reference to loan schema via Add->Import->loanSchema
-(two times)right click element node of purchase order add element->existing type ->referenced schema -> choose a type
-go to source view, delete newElement
-switch to Design View, newElement is gone
-right click newElement1 and Delete is enabled
Comment 8 Sonali Kochar 2007-08-22 20:45:26 UTC
I talked to Sam about this bug and he said it could be related to http://www.netbeans.org/issues/show_bug.cgi?id=85578
Design view: Delete not always enabled on pop-up menu

Please note that the steps to reproduce 85578 are different from the ones described in this bug. We are unable to see
this issue with the steps described in this bug.

The cause for 85578 is not known. I will raise this bug in iteam and reduce its priority to p3
Comment 9 Michael Nazarov 2007-08-23 13:33:30 UTC
Yes, bugs looks similar. Well, I'm unable to reproduce with latest build and agree with P3.
Comment 10 tonybeckham 2007-09-26 19:46:23 UTC
Product Version: NetBeans IDE Dev (Build 200709260000) 
Java: 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-87 
System: Mac OS X version 10.4.10 running on i386; MacRoman; en_US (nb)

I can reproduce this by the steps described in desc1, on Mac OS.
Comment 11 tonybeckham 2007-09-26 20:06:25 UTC
Easier steps to reproduce this:
1. Create a new Java App
2. Add a new schema
3. In schema view add 2 new elements
4. Switch to Design View
5. Right click one of the new elements and select Delete and then refactor
6. Once Design View updates, repeat step 5 and Delete is disabled.

These Steps work on Mac, Solaris and WinXP.
Comment 12 tonybeckham 2008-01-17 23:20:46 UTC
To enable Delete if it is disabled it to click somewhere in the editor then bring the contex menu back up.
Comment 13 Sonali Kochar 2008-07-18 01:16:17 UTC
This is working in 6.1
Comment 14 tonybeckham 2008-07-18 02:55:59 UTC
Still happens problem.

Product Version: NetBeans IDE Dev (Build 200807170007)
Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52
System: Mac OS X version 10.5.4 running on x86_64; MacRoman; en_US (nb)
Comment 15 Sergey Lunegov 2009-05-08 13:59:44 UTC
Not for this release.
Comment 16 Martin Balin 2016-07-07 09:56:55 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss