Changeset 25682 for main/trunk/gli/src
- Timestamp:
- 2012-05-28T23:44:13+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/cdm/Format4gs3Manager.java
r25610 r25682 33 33 import javax.xml.parsers.DocumentBuilderFactory; 34 34 35 import org.fife.ui.rsyntaxtextarea.*; 36 35 37 import org.greenstone.gatherer.Configuration; 36 38 import org.greenstone.gatherer.DebugStream; … … 297 299 298 300 editor_textarea = new NumberedJTextArea(); 301 302 /* Fields specific to RSyntaxQuery inherited class */ 303 editor_textarea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_XML); 304 editor_textarea.setBracketMatchingEnabled(true); 305 editor_textarea.setAnimateBracketMatching(true); 306 editor_textarea.setAntiAliasingEnabled(true); 307 editor_textarea.setAutoIndentEnabled(true); 308 editor_textarea.setPaintMarkOccurrencesBorder(false); 309 310 /* Standard fields to JTextArea */ 299 311 editor_textarea.setOpaque(false); 300 312 editor_textarea.setBackground(Configuration.getColor("coloring.editable_background", false)); … … 824 836 * A textarea with the line number next to each line of the text 825 837 */ 826 public class NumberedJTextArea extends JTextArea838 public class NumberedJTextArea extends RSyntaxTextArea /*JTextArea*/ 827 839 { 828 840 public void paintComponent(Graphics g) … … 832 844 g.setColor(Color.white); 833 845 g.fillRect(rectangle.x, rectangle.y, rectangle.width, rectangle.height); 846 847 super.paintComponent(g); 848 834 849 if (rectangle.x < insets.left) 835 850 { … … 860 875 line_number_start_point++; 861 876 } 862 } 863 super.paintComponent(g); 877 } 864 878 } 865 879
Note:
See TracChangeset
for help on using the changeset viewer.