Skip to content

Add HTML table generation support to HTMLBuilder and HTMLPrinter - #1

Merged
danteCarvalho merged 3 commits into
masterfrom
copilot/analyze-and-propose-code-for-issue-3761
Mar 19, 2026
Merged

danteCarvalho merged 3 commits into
masterfrom
copilot/analyze-and-propose-code-for-issue-3761

Conversation

Copilot AI commented Mar 19, 2026 •

Copy link
Copy Markdown

Method parameter mismatch hover errors are displayed as flat text (e.g., "The method foo(TypeA, TypeB) is not applicable for the arguments (TypeC, TypeD)"), which becomes nearly unreadable when many parameters are involved.

Changes

  • org.eclipse.text — HTMLBuilder: Added 6 new instance methods for HTML table generation:

    • startTable / endTable — <table> wrapper
    • startTableRow / endTableRow — <tr> wrapper
    • addTableHeaderCell — <th>content</th>
    • addTableCell — <td>content</td>
  • org.eclipse.jface.text — HTMLPrinter: Added corresponding static facade methods delegating to the CORE HTMLBuilder instance, consistent with the existing delegation pattern.

Usage example

StringBuilder buffer = new StringBuilder();
HTMLPrinter.startTable(buffer);
HTMLPrinter.startTableRow(buffer);
HTMLPrinter.addTableHeaderCell(buffer, "#");
HTMLPrinter.addTableHeaderCell(buffer, "Expected");
HTMLPrinter.addTableHeaderCell(buffer, "Provided");
HTMLPrinter.endTableRow(buffer);
// ... add data rows ...
HTMLPrinter.endTable(buffer);

This enables downstream clients (e.g., JDT hover implementations) to render parameter mismatch data in a structured table rather than a flat string.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • repo.eclipse.org
    • Triggering command: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/21.0.10-7/x64/bin/java /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/21.0.10-7/x64/bin/java --enable-native-access=ALL-UNNAMED -classpath /opt/hostedtoolcache/maven/3.9.12/x64/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/opt/hostedtoolcache/maven/3.9.12/x64/bin/m2.conf -Dmaven.home=/opt/hostedtoolcache/maven/3.9.12/x64 -Dlibrary.jansi.path=/opt/hostedtoolcache/maven/3.9.12/x64/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/eclipse.platform.ui/eclipse.platform.ui org.codehaus.plexus.classworlds.launcher.Launcher clean compile -pl :org.eclipse.text -Pbuild-individual-bundles -q org.eclipse.ui.t/home/REDACTED/work/eclipse.platform.ui/eclipse.platform.ui/bundles/org.eclipse.uigit status --porcelain --ignore-submodules | head -n 10 org.eclipse.ui.txargs va ava org.eclipse.ui.tHTMLBuilder\|HTMLPrinter (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Copilot AI and others added 2 commits March 19, 2026 01:22
Co-authored-by: danteCarvalho <6034345+danteCarvalho@users.noreply.github.com>
Co-authored-by: danteCarvalho <6034345+danteCarvalho@users.noreply.github.com>
Copilot AI changed the title [WIP] [EPL-3761] Analyze and propose code for UI issue Add HTML table generation support to HTMLBuilder and HTMLPrinter Mar 19, 2026
Copilot AI requested a review from danteCarvalho March 19, 2026 01:23
@danteCarvalho
danteCarvalho marked this pull request as ready for review March 19, 2026 02:09
@danteCarvalho
danteCarvalho merged commit 29f4198 into master Mar 19, 2026
3 of 7 checks passed
@danteCarvalho
danteCarvalho deleted the copilot/analyze-and-propose-code-for-issue-3761 branch March 19, 2026 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants