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 2628 - Attempt to delete unsaved file invoke question "Save file?"
Summary: Attempt to delete unsaved file invoke question "Save file?"
Status: CLOSED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: L Martinek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-07-21 01:26 UTC by L Martinek
Modified: 2008-12-23 10:53 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 L Martinek 1999-07-21 01:26:23 UTC
1. Open in editor a file.
2. Make some changes. Don`t save it.
3. Try to delete this in explorer.
4. "Are you sure?" question appears. Say yes.
5. "File is modified. Save it?" question appears. This is totally redundant. Of course I don`t want save file if I want delete it. But if you say yes two dialogs appear: "Save operation failed" and "F

ile is readonly".

[Libor] Now "Save?" question doesn`t appear but exception is thrown:

java.io.IOException: Shared access
	at org.openide.loaders.FileEntry.delete(FileEntry.java:83)
	at org.openide.loaders.MultiDataObject.handleDelete(MultiDataObject.java, Compiled Code)
	at org.openide.loaders.DataObject$2.run(DataObject.java:479)
	at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:414)
	at org.openide.loaders.DataObject.delete(DataObject.java:477)
	at org.openide.loaders.DataNode.destroy(DataNode.java:144)
	at org.openide.nodes.FilterNode.destroy(FilterNode.java:312)
	at org.openide.explorer.ExplorerActions$1.run(ExplorerActions.java, Compiled Code)
	at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:414)
	at org.openide.explorer.ExplorerActions$DeleteActionPerformer.performAction(ExplorerActions.java:385)
	at org.openide.util.actions.CallbackSystemAction.performAction(CallbackSystemAction.java:79)
	at org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:69)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1066)
	at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1101)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:226)
	at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:754)

	at java.awt.Component.processMouseEvent(Component.java, Compiled Code)
	at java.aw
Comment 1 Marek Grummich 2000-07-25 09:40:59 UTC
Priority is changed to P4 (normal).