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 119952 - Remove imported element not being removed in the editor
Summary: Remove imported element not being removed in the editor
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-24 19:42 UTC by Joanne Lau
Modified: 2009-05-25 21:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot attached (74.38 KB, image/gif)
2007-10-24 19:42 UTC, Joanne Lau
Details
messages file attached (33.94 KB, text/plain)
2007-10-24 20:56 UTC, Joanne Lau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joanne Lau 2007-10-24 19:42:08 UTC
NB instrumented build: 200710232304

Repro steps:
1) Have 2 projects (P1, P2), each has a class diagram
1) In P1, In a class diagram, create a package (pack1), a interface element (I1) within the package
2) DnD pack2 to project P2,  select No in "Move Element into Different Project" dialog
3) In P2, expand imported elements node
4) DnD I1 to the the diagram editor
5) Repeat step 4 again, now there are 2 I1 element in the editor
6) In the diagram editor for P2, select I1 element and click <Delete> key
7) Check "Also remove from Imported elements" in Delete dialog
8) The result is that I1 is not being deleted.  (see snapshot)

   Repeat step 6 and step 7 again,  it finally gets deleted.

   I try to select both I1 elements in the diagram and click <Delete>,  none of the I1 elements is deleted.
   
   The issue is that if X number of same element is present in the diagram,  it takes X number of deletions to
   finally remove the element from the imported list.

   Another workaround is to select I1 in Imported Elements from the Projects tree and <Delete>, all I1 elements
   in the diagram get deleted. 

   The same logic should also apply from the diagram editor.
Comment 1 Joanne Lau 2007-10-24 19:42:36 UTC
Created attachment 51617 [details]
screenshot attached
Comment 2 Joanne Lau 2007-10-24 20:55:41 UTC
I see ConcurrentModificationException thrown in the logfile.
(see attached logfile)
Comment 3 Joanne Lau 2007-10-24 20:56:30 UTC
Created attachment 51626 [details]
messages file attached
Comment 4 Peter Lam 2008-06-18 19:38:12 UTC
this issue can't be verified yet due to the blocking issue 128883.
Comment 5 Sergey Petrov 2009-01-26 17:48:41 UTC
some steps are unclear steps
2.there was no pack2 creation bafore, not sure if it should be pack1 or pack2 is a package from P2
4. to which diagram editor, most likely in P2 but not sure, in next step it's specified to work with editor from P2, but
not in step 4.

with some assumptions issue is reproducible in 6.5