public class SWTPageSourceMinifier extends HTMLMinifier
SWT-specific page source minifier for Katalon Studio's native widget tree XML. The SWT page source (produced by ComponentFinder) describes the live SWT widget hierarchy. Three widget categories appear in it: Type 1 — Native SWT (Shell, Button, Text, Tree, CTabItem, …) Type 2 — Browser (SWT Browser hosting an embedded webview) Internal (Eclipse e4 housekeeping shells like "limbo") Additional SWT-specific optimisation phases (run after the base phases): - Remove "PartRenderingEngine's limbo" shells (Eclipse e4 internal, never user-visible) - Remove empty Menu elements (no MenuItems — no actionable content) - Remove leaf-level empty Composites (no id, no text, no children) minifyHTML is overridden to skip MinifyHtml, which lowercases all element names and destroys the PascalCase SWT widget type names that selectors rely on.
| Constructor and description |
|---|
SWTPageSourceMinifier
(String html) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected String |
minifyDOM(String locator) |
|
protected String |
minifyHTML(String html)Skip MinifyHtml: that library treats the content as HTML and lowercases all element names, destroying PascalCase SWT widget type names (Button, CTabItem, StyledText, …) that CSS selectors in the MCP tools depend on. |
Skip MinifyHtml: that library treats the content as HTML and lowercases all element names, destroying PascalCase SWT widget type names (Button, CTabItem, StyledText, …) that CSS selectors in the MCP tools depend on. Whitespace-only compaction is sufficient for SWT XML.