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 78578 - deletion source artifact is handled badly
Summary: deletion source artifact is handled badly
Status: RESOLVED INVALID
Alias: None
Product: uml
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Yang Su
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-20 13:16 UTC by bugbridge
Modified: 2007-01-22 20:15 UTC (History)
1 user (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 bugbridge 2006-06-20 13:16:55 UTC
feel free to separate issues to different CRs,

see description of 'Delete File when Deletion Source Artifact' in UML options
before reproducing (but remeber there is no source artifaact in properties since
buzz, artifact existts only in project tree).
steps to reproduce:
1. create java project
2. create uml project by re
3. check 'Delete File when Deletion Source Artifact' option (should be 'Ask Me'
by default)
4. add package with scoped class diagram
5. add and name class to the diagram
6. go to class node in project tree
7. expand the node
8. select source artifact node within class node and press delete
file deletion confirmation appears
9. press no
BUG: source artifact remains within class node
10. invoke Delete again
11. press Yes
artifact is removed
BUG: source file isn't removed

Evaluation:
UML_UST is added.
issue affects usage of standard library intefaces (or library interfaces) in
model(connected with source).
Comment 1 Yang Su 2006-07-21 01:24:11 UTC
The result after step 9 is not really a bug, confirmation asks user whether or
not to delete artifact node, not the source file, answer 'no' should leave the
node in its place. I see nothing wrong here, though the artifact node display
name refers to the location of the source file, so the confirmation message may
sound confusing.

'Yes' to the question does not result in source deletion is a bug.
Comment 2 Sergey Petrov 2006-07-21 10:07:21 UTC
Question in step9 ask if I want to delete smth and show something as full path
to my java source. it isn't clear it asks about artifact deletion. And according
to description of 'Delete File when Deletion Source Artifact' it should ask
about source file deletion or may be I miss something. May be there should be
two confirmation when 'Delete File when Deletion Source Artifact' set to ask me
first one if I want to delete artifact and second one if I want to delete source
file also (may be combined in one dialog)
I think deletion of arifact without deletion of source should delete "model
artifact" from source node too (i.e. break relation source-model for the class).
Comment 3 Peter Lam 2007-01-22 20:15:54 UTC
this issue is no longer valid since file artifact is no longer a node in the
project tree.