Skip to content

Commit 960697f

Browse files
committed
Use text block
1 parent af74fee commit 960697f

File tree

1 file changed

+5
-3
lines changed
  • org.eclipse.wildwebdeveloper.xml/src/org/eclipse/wildwebdeveloper/xml/internal/ui/preferences

1 file changed

+5
-3
lines changed

org.eclipse.wildwebdeveloper.xml/src/org/eclipse/wildwebdeveloper/xml/internal/ui/preferences/XMLCatalogs.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ public static Set<File> getAllCatalogs(IPreferenceStore store) {
5757

5858
private static File getWTPExtensionCatalog() {
5959
StringBuilder catalogFile = new StringBuilder();
60-
catalogFile.append("<?xml version=\"1.0\"?>\n"
61-
+ "<!DOCTYPE catalog PUBLIC \"-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN\" \"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd\">\n"
62-
+ "<catalog xmlns=\"urn:oasis:names:tc:entity:xmlns:xml:catalog\" prefer=\"public\">\n");
60+
catalogFile.append("""
61+
<?xml version="1.0"?>
62+
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
63+
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="public">
64+
""");
6365
Arrays.stream(Platform.getExtensionRegistry()
6466
.getConfigurationElementsFor("org.eclipse.wst.xml.core.catalogContributions"))
6567
.filter(element -> "catalogContribution".equals(element.getName()))

0 commit comments

Comments
 (0)