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.
Summary: | Read-only files are hard to recognize | ||
---|---|---|---|
Product: | platform | Reporter: | Roman Strobl <rstrobl> |
Component: | Text | Assignee: | mslama <mslama> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | jtulach, pnejedly |
Priority: | P4 | Keywords: | USABILITY |
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Roman Strobl
2005-04-26 07:01:40 UTC
This needs to be handled in openide/editor. Reassigning. The editor beeps, which is good enough feedback IMO. Posting a popup is way too intrusive in case I mistakenly type a letter while browsing such a read-only file, so I disagree with this suggestion. Reasonable action would be to post a message to the status bar, and that would have to be handled by the editor library (DefaultKeyTyped) Petre, the message is already written to the status bar. The IDE doesn't beep for me in read-only files - are you sure about the beep? Other actions do beep for me (like go to declaration of non-existing class). Beeping would solve the issue IMO, although it may not be available on all computers. The beep() in CloneableEditorSupport:1596 is not triggered as the code does not go into undoAll() at all. Instead it goes through CES:1552. This is likely a regression caused by the recent introducing of the modificationListener. Adding Yarda to cc. Right, I am sorry. Probably there was no test verifying that Toolkit.beep() is called when document is readonly, so the behaviour was easy to be dropped. Reassigning to new module owner mslama. I moved Toolkit.getDefaultToolkit().beep() to CES.notifyModified and tested it is called when document is ro. Still call of beep() has no effect on my Ubuntu 9.04 notebook. Please test if beep works for you. core-main #76b2ca528959 Integrated into 'main-golden', will be available in build *200905080201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/76b2ca528959 User: Marek Slama <mslama@netbeans.org> Log: #58312: Call beep when editing read only document. |