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 96133 - Close/Close all documents from tab context ask twice is say No
Summary: Close/Close all documents from tab context ask twice is say No
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Trey Spiva
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2007-02-21 12:07 UTC by Sergey Petrov
Modified: 2007-02-22 23:57 UTC (History)
0 users

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 Sergey Petrov 2007-02-21 12:07:37 UTC
reproducible with 070221_1

steps:
1. create diagram
2. add element
3. invoke 'Close All Documents' on diagram's tab
4. say No in first dialog
second dialog appears
Comment 1 Sergey Petrov 2007-02-21 12:08:26 UTC
the same if close from dialog after shift-f4
Comment 2 Trey Spiva 2007-02-22 00:03:08 UTC
Issue 96133 - The problem is that NetBeans is calling  canClose more than one time (I do not know why).  
However if the  user said do not save the first time, the diagram will still be marked as dirty.  So we will 
try to save again the second time. Therefore the dialog will be displayed again.  

However when the user says to not save, we remove the SaveCookie from the DataObject.  So, check if the 
save cookie is present. If the save cookie is not present, we can not save anyway.  So,  let the user close 
the diagram.
Comment 3 Peter Lam 2007-02-22 23:57:25 UTC
verified in build 070222.