Skip to content

XML Formatter does not format entire document when no text is selected in POM Editor #1835

@bvo42

Description

@bvo42

Description:

In Eclipse IDE for Java Developers 2025-03 R, the XML formatter only formats selected text within the POM Editor.
When no text is selected and the format command is invoked (e.g., via Ctrl+Shift+F), no formatting occurs.

Steps to Reproduce:

  1. Download and install Eclipse IDE for Java Developers 2025-03 R.
  2. Create a new Maven project.
  3. Open the pom.xml file using the POM Editor.
  4. Ensure no text is selected.
  5. Press Ctrl+Shift+F or choose "Source > Format" from the menu.

Expected Behavior:

The entire pom.xml document should be formatted according to the configured formatting settings.

Actual Behavior:

No formatting occurs when no text is selected.

Additional Information:

  • Eclipse Version: 4.35
  • Wild Web Developer XML tools: 1.3.6.202409052135
  • Operating System: Ubuntu 22.04 (x86_64)
  • Java Version: OpenJDK 21.0.6

This behavior is unexpected, as typically, invoking the format command without a selection should format the entire document.

Please let me know if additional information is needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions