Product Version = NetBeans IDE 7.3 Beta 2 (Build 201211062253)
Operating System = Linux version 3.2.0-33-generic-pae running on i386
Java; VM; Vendor = 1.7.0_09
Runtime = Java HotSpot(TM) Client VM 23.5-b02
click in editor.
Ctrl-S (Emacs keybinding) does nothing.
Edit -> Find is greyed out, as is Edit -> Replace.
Other buffers are still working normally.
Please check if your file is not read-only for some reason.
in a persistence.xml (ORM mapping) in a sample application, the Find feature works well.
Please zip the project (even excluding sources, or irrelevant parts), or make a sample project that exhibits the defect & attach to the defect. thanks.
(In reply to comment #1)
> Please check if your file is not read-only for some reason.
Yeah, it isn't read-only. I can edit it to my hearts content.
You are correct that find works fine in persistence.xml. It is only orm.xml that has an issue.
please note that these are 2 different types of xml documents. persistence.xml sets up the persistence context. orm.xml has actual mapping definitions (i.e. overrides the JPA class annotations).
I created manually a sample orm.xml file (using namespace http://java.sun.com/xml/ns/persistence/orm). Find is enabled as usual, file is recognized as configuration file by JPA project support.
Passing to JEE team, maybe some project-specific issue ?
there is no orm.xml support on jpa support side, i.e. general xml support should work here.
also I see it was reported against beta2, is it reproducible with release?
is it valid for any file "orm.xml" with any content and location, can you provide your orm.xml or/and sample project?
also tried to crate some sample orm.xml in maven project (to have the same path), I'm using default keybinding but it shouldn't affect main menu in my opinion. Edit|find isn't disabled in my case nether right after orm.xml creation nor after ide restart.
I'm seeing the same behaviour in NetBeans 7.3: I can't use Find in orm.xml-files.
The actual file name doesn't seem to matter, but once I remove the xmlns-attribute from the root element, I can use Find again.
Created attachment 134009 [details]
I've attached a sample project with an orm.xml file. This is an Ant project, but the bug happens in Maven projects as well.
*** Bug 227319 has been marked as a duplicate of this bug. ***
as even name doesn't matter and it's related to existence of xmlns, move to xml area