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.
I opened a class file from jar, NetBeans generated a temp read only source file for it. But I think all editable actions(in Menu, context, editor toolar) should be disabled. Such as delete, comments/uncomment, refactor, code generating.
The same for a source from a JAR, i.e. Go To type j.l.String.
It seems that the action registration lack the ability to declare whether the action should be enabled or not depending on writability. The paste action solved as issue #222935 is handled by a special case in EditorUI. I think the enhancement described in issue #222212 need to be extended: the action should be able to specify writability constraints. Each of the actions could eventually monitor EditorRegistry and track the focused editor and its caret; this would add a burden to editor action writers. *** This bug has been marked as a duplicate of bug 222212 ***
*** Bug 232486 has been marked as a duplicate of this bug. ***
Reopening; keeping this open and dependent on the API issue is more proper for progress tracking
Created attachment 140025 [details] stacktrace During editing, on pressing TAB key, this error is generated.
Report from old NetBeans version. Due to code changes since it was reported likely to not happen. Feel free to reopen if happens in 8.0.2 or 8.1.