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 35303 - ALL: "Delete" action is enabled on read-only files.
Summary: ALL: "Delete" action is enabled on read-only files.
Status: VERIFIED DUPLICATE of bug 25762
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P4 blocker (vote)
Assignee: David Konecny
Depends on:
Reported: 2003-08-06 13:58 UTC by Jiri Kovalsky
Modified: 2008-12-22 17:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2003-08-06 13:58:12 UTC
Development build #200308060100 of NetBeans 4.0
Windows 2000 with JDK 1.4.1 build 20

Sometimes it looks like "Delete" action is enabled
very long or forever after a file is changed to
read-only state. Its invokation does not produce
any result. This is reproducable with own command
in Empty profile.

Steps to reproduce:
1. Mount some directory using "Empty" profile.
2. Create new command with the following execution
cmd /x /c "attrib +r
3. Create new Java file.
4. Invoke the command on the file.
5. Right click the file. "Delete" action will be
Comment 1 Martin Entlicher 2003-08-06 15:32:56 UTC
When the popup menu is expanded, someone asks ~10x for whether the
file is read-only or not. But the Delete action is probably not among
them. The filesystem returns the state correctly. The action is not
updated. When a different file is selected and then back the original
file, the Delete action is updated.
Comment 2 Peter Zavadsky 2003-08-07 09:05:20 UTC
I guess it belongs to editor support machinery.

Delete action is callback, it doesn't manage its state on its own.
Comment 3 David Konecny 2003-08-11 12:47:15 UTC
This is known issue which cannot be properly solved till the
enhancement issue 25762 is solved. There is nothing what would reflect
readonly state of editor.

The simplified testcase is:
- open readonly file and Delete (or Paste, etc.) action is enabled.

I'm closing as duplicate of issue 25762. This issue does not causes
any problems. It is UI defect which should be solved as part of the
25762 issue.

*** This issue has been marked as a duplicate of 25762 ***
Comment 4 Jiri Kovalsky 2003-08-14 12:45:51 UTC
Okay, I won't argue here. Verifying as a dup of #25762.