MCPcopy Create free account
hub / github.com/FabricMC/Matcher / displayHtml

Method displayHtml

src/main/java/matcher/gui/tab/WebViewTab.java:45–51  ·  view source on GitHub ↗
(String html)

Source from the content-addressed store, hash-verified

43 }
44
45 protected void displayHtml(String html) {
46 html = template.replace("%text%", html)
47 .replace("%theme_path%", Config.getTheme().getUrl().toExternalForm());
48
49 //Matcher.LOGGER.debug(html);
50 webView.getEngine().loadContent(html);
51 }
52
53 protected void select(String anchorId) {
54 addWebViewTask(() -> webView.getEngine().executeScript("var newAnchor = document.getElementById('"+anchorId+"');"

Callers 3

displayTextMethod · 0.95
applyDecompilerResultMethod · 0.80
updateMethod · 0.80

Calls 2

getThemeMethod · 0.95
getUrlMethod · 0.80

Tested by

no test coverage detected