Changeset 8933 in josm for trunk/src/org/openstreetmap/josm/gui/widgets/JosmHTMLEditorKit.java
- Timestamp:
- 2015-10-23T14:50:40+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/JosmHTMLEditorKit.java
r8415 r8933 2 2 package org.openstreetmap.josm.gui.widgets; 3 3 4 import javax.swing.text.ViewFactory; 4 5 import javax.swing.text.html.HTMLEditorKit; 5 6 import javax.swing.text.html.StyleSheet; … … 8 9 * A subclass of {@link HTMLEditorKit} that fixes an uncommon design choice that shares the set stylesheet between all instances. 9 10 * This class stores a single stylesheet per instance, as it should have be done by Sun in the first place. 11 * Moreover it allows to display SVG images. 10 12 * @since 6040 11 13 */ 12 14 public class JosmHTMLEditorKit extends HTMLEditorKit { 13 15 14 protected StyleSheet ss = super.getStyleSheet(); 16 /** Shared factory for creating HTML Views. */ 17 private static final ViewFactory FACTORY = new JosmHTMLFactory(); 18 19 private StyleSheet ss = super.getStyleSheet(); 15 20 16 21 /** … … 42 47 return ss; 43 48 } 49 50 @Override 51 public ViewFactory getViewFactory() { 52 return FACTORY; 53 } 44 54 }
Note:
See TracChangeset
for help on using the changeset viewer.