23
23
import org .eclipse .swt .graphics .RGB ;
24
24
import org .eclipse .swt .widgets .Display ;
25
25
26
- import org .eclipse .text .html .BaseHTMLPrinter ;
26
+ import org .eclipse .text .html .HTMLBuilder ;
27
27
28
28
import org .eclipse .jface .resource .JFaceColors ;
29
29
import org .eclipse .jface .resource .JFaceResources ;
36
36
* Moved into this package from <code>org.eclipse.jface.internal.text.revisions</code>.</p>
37
37
*/
38
38
public class HTMLPrinter {
39
- private static final BaseHTMLPrinter CORE = new BaseHTMLPrinter ();
39
+ private static final HTMLBuilder CORE = new HTMLBuilder ();
40
40
41
41
static {
42
42
final Display display = Display .getDefault ();
@@ -87,7 +87,7 @@ private static void cacheColors(Display display) {
87
87
* @see #addPreFormatted(StringBuilder, String) for rendering with an {@link HTML2TextReader}
88
88
*/
89
89
public static String convertToHTMLContent (String content ) {
90
- return BaseHTMLPrinter .convertToHTMLContent (content );
90
+ return HTMLBuilder .convertToHTMLContent (content );
91
91
}
92
92
93
93
/**
@@ -106,11 +106,11 @@ public static String convertToHTMLContent(String content) {
106
106
* @since 3.7
107
107
*/
108
108
public static String convertToHTMLContentWithWhitespace (String content ) {
109
- return BaseHTMLPrinter .convertToHTMLContentWithWhitespace (content );
109
+ return HTMLBuilder .convertToHTMLContentWithWhitespace (content );
110
110
}
111
111
112
112
public static String read (Reader rd ) {
113
- return BaseHTMLPrinter .read (rd );
113
+ return HTMLBuilder .read (rd );
114
114
}
115
115
116
116
/**
@@ -477,6 +477,6 @@ private static void runOp(StringBuffer buffer, BuilderBuffer bf) {
477
477
public static String convertTopLevelFont (String styles , FontData fontData ) {
478
478
boolean bold = (fontData .getStyle () & SWT .BOLD ) != 0 ;
479
479
boolean italic = (fontData .getStyle () & SWT .ITALIC ) != 0 ;
480
- return BaseHTMLPrinter .convertTopLevelFont (styles , bold , italic , fontData .getHeight (), fontData .getName ());
480
+ return HTMLBuilder .convertTopLevelFont (styles , bold , italic , fontData .getHeight (), fontData .getName ());
481
481
}
482
482
}
0 commit comments