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.
090311, cluster.config=basic. Double-clicking an XML file does nothing, nor does hitting Enter when it is selected. Edit and View are both available in the context menu and work fine. Possibly a side-effect of the fix for issue #151153, not sure. Note that XMLDataNode specifies its default action as OpenAction whereas the layer offers EditAction.
Still reproducible in my standard userdir, though not in a fresh userdir. (What the difference is, I have no idea - tried and failed to find any settings in my std userdir which would be responsible.) Using apisupport.beanbrowser I can confirm that 1. The preferred action is OpenAction, not EditAction as you might expect. (Context menu contains EditAction and ViewAction.) Indeed XMLDataNode says @Override public SystemAction getDefaultAction() { return SystemAction.get (OpenAction.class); } for no obvious reason; if deleted, would default to first action in context menu, i.e. EditAction, which would probably make it work. 2. DataObject and Node lookups contain TextEditorSupport, assignable to OpenCookie among other things. Yet by using http://blogs.sun.com/roller/resources/jglick/jrunscriptin.jar I can confirm that lookup.lookup(OpenCookie.class) returns null (even in the fresh userdir!) while .lookup(EditCookie.class) is not null.
Can no longer reproduce in my userdir (as a result of trying to reproduce?). Anyway, I will delete the apparently useless action override: core-main #7800f05bebd7
Integrated into 'main-golden', will be available in build *200904250201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/7800f05bebd7 User: Jesse Glick <jglick@netbeans.org> Log: #160208: Edit vs. Open problem in default action of *.xml. Anyway default action defaults to first in context menu which is good enough.
*** Issue 163845 has been marked as a duplicate of this issue. ***