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 150818 - Different behaviour in case when unsaved file is closed
Summary: Different behaviour in case when unsaved file is closed
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on: 150432
Blocks: 151787
  Show dependency tree
 
Reported: 2008-10-21 08:13 UTC by Jana Maleckova
Modified: 2009-03-12 16:10 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 Jana Maleckova 2008-10-21 08:13:11 UTC
This issue is closely connected with issue 150432. When user reaches the state described in this bug then there are two
ways how to save the bundle file but the result is different.

1. open the critical bundle in editor and press Ctrl+S => dialog appears with two buttons "Yes" "No". If dialog is
confirmed, file is overwritten. IDE fulfilled user's expectation

2. open the critical bundle in editor (unsaved, with asterisk on tab). Try to close it - press the cross in tab => Save
dialog appears => press Save. Warning dialog is opened but little different from previous usecase. It contains only OK
button with question "Overwrite it?". I suppose that when I press OK button, file would be really overwritten but it
doesn't happen. 

Both usecases should be united and should not confuse user.
Comment 1 mslama 2009-03-12 16:10:23 UTC
It looks like it is fixed already. At least I cannot reproduce it. Or give exact steps to reproduce from beginning here.
I do not quite understand how to continue from issue #150432 where properties file is opened and modified. Please verify.

  Product Version         = NetBeans IDE Dev (Build 090312)
  Operating System        = Linux version 2.6.24-24-generic running on i386
  Java; VM; Vendor        = 1.6.0_12; Java HotSpot(TM) Client VM 11.2-b01; Sun Microsystems Inc.
  Runtime                 = Java(TM) SE Runtime Environment 1.6.0_12-b04
  Java Home               = /usr/java/jdk1.6.0_12/jre
  System Locale; Encoding = en_US (nb); UTF-8