Revision 32424
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/java/org/gvsig/installer/swing/impl/creation/panel/AntScriptPanel.java | ||
---|---|---|
30 | 30 |
import javax.swing.JEditorPane; |
31 | 31 |
import javax.swing.JPanel; |
32 | 32 |
import javax.swing.JScrollPane; |
33 |
import javax.swing.text.StyledEditorKit; |
|
34 |
import javax.swing.text.ViewFactory; |
|
35 |
import javax.swing.text.html.HTMLEditorKit; |
|
33 | 36 |
|
37 |
import org.apache.batik.util.gui.xmleditor.XMLEditorKit; |
|
34 | 38 |
import org.gvsig.installer.swing.api.SwingInstallerLocator; |
35 | 39 |
import org.gvsig.installer.swing.impl.DefaultSwingInstallerManager; |
36 | 40 |
|
... | ... | |
45 | 49 |
public AntScriptPanel() { |
46 | 50 |
super(); |
47 | 51 |
swingInstallerManager = (DefaultSwingInstallerManager)SwingInstallerLocator.getSwingInstallerManager(); |
48 |
initComponents(); |
|
52 |
initComponents();
|
|
49 | 53 |
} |
50 | 54 |
|
51 | 55 |
private void initComponents() { |
... | ... | |
53 | 57 |
|
54 | 58 |
scriptScrollPane = new javax.swing.JScrollPane(); |
55 | 59 |
scriptEditorPane = new javax.swing.JEditorPane(); |
56 |
|
|
60 |
scriptEditorPane.setEditorKitForContentType("text/xml", new XMLEditorKit()); |
|
61 |
scriptEditorPane.setContentType("text/xml"); |
|
62 |
|
|
57 | 63 |
setLayout(new java.awt.GridBagLayout()); |
58 | 64 |
|
59 | 65 |
scriptScrollPane.setViewportView(scriptEditorPane); |
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/pom.xml | ||
---|---|---|
29 | 29 |
<dependency> |
30 | 30 |
<groupId>org.gvsig</groupId> |
31 | 31 |
<artifactId>org.gvsig.ui</artifactId> |
32 |
</dependency> |
|
32 |
</dependency> |
|
33 |
<dependency> |
|
34 |
<groupId>org.apache.xmlgraphics</groupId> |
|
35 |
<artifactId>batik-gui-util</artifactId> |
|
36 |
</dependency> |
|
37 |
<dependency> |
|
38 |
<groupId>org.apache.xmlgraphics</groupId> |
|
39 |
<artifactId>batik-xml</artifactId> |
|
40 |
</dependency> |
|
33 | 41 |
</dependencies> |
34 | 42 |
</project> |
Also available in: Unified diff