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

Summary: Close/Close all documents from tab context ask twice is say No
Product: uml Reporter: Sergey Petrov <sj-nb>
Component: ProjectAssignee: Trey Spiva <tspiva>
Status: VERIFIED FIXED    
Severity: blocker Keywords: REGRESSION
Priority: P2    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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.