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.
Build: NetBeans IDE Dev (Build 201312030002) VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b33 OS: Linux User Comments: cyhelsky: reverting change in file GUEST: clicking on netbeans from another app Stacktrace: javax.swing.text.BadLocationException: Modification not allowed at org.openide.text.CloneableEditorSupport$DocFilter.modificationNotAllowed(CloneableEditorSupport.java:2385) at org.openide.text.CloneableEditorSupport$DocFilter.checkModificationAllowed(CloneableEditorSupport.java:2379) at org.openide.text.CloneableEditorSupport$DocFilter.replace(CloneableEditorSupport.java:2355) at org.netbeans.editor.BaseDocument.replace(BaseDocument.java:1042) at org.netbeans.modules.versioning.ui.diff.DiffSidebar.onRollback(DiffSidebar.java:338) at org.netbeans.modules.versioning.ui.diff.DiffTooltipActionsPanel.actionPerformed(DiffTooltipActionsPanel.java:136)
Created attachment 142918 [details] stacktrace
Reassigning back. Looking at org.netbeans.editor.BaseDocument.replace(BaseDocument.java:1042), at this point it is already after a call to "checkModifiable(offset);" so it looks as if BaseDocument allows editing but further org.openide.text.CloneableEditorSupport$DocFilter disallows it. Lack of inconsistency? Or please advise on what should be the correct way to determine if a document is editable: http://hg.netbeans.org/core-main/file/4005d84fa44d/versioning.ui/src/org/netbeans/modules/versioning/ui/diff/DiffSidebar.java#l373
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=203621