Uses 1485K of libraries. Click here for Pure Java version (15300L/93K).
sclass JSyntaxTextFileEditor > JTextFileEditor { *(File file) { super(file); } RSyntaxTextAreaWithSearch textAreaWithSearch; @Override public RSyntaxTextArea textArea() { ret (RSyntaxTextArea) textArea; } @Override JTextArea makeTextArea() { textAreaWithSearch = makeSyntaxTextAreaWithSearch(); textAreaWithSearch.menuLessOperation(); var ta = textAreaWithSearch.textArea(); adaptSyntaxTextArea(ta); ret ta; } @Override JComponent textAreaLayoutComponent() { ret textAreaWithSearch.visualize(); } swappable RSyntaxTextAreaWithSearch makeSyntaxTextAreaWithSearch() { ret rSyntaxTextAreaWithSearch(); } swappable void adaptSyntaxTextArea(RSyntaxTextArea textArea) {} public selfType autoSave(bool b) { super.autoSave(b); this; } public selfType uneditable(bool b) { super.uneditable(b); this; } }
Began life as a copy of #1034689
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034701 |
| Snippet name: | JSyntaxTextFileEditor - JTextFileEditor with RSyntaxTextArea (and search) |
| Eternal ID of this version: | #1034701/12 |
| Text MD5: | 8a6badb42ccd91cd3cad3c44b89ef437 |
| Transpilation MD5: | 89f0cfdee87fd170dab10dcc071b4784 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-03-07 15:36:19 |
| Source code size: | 901 bytes / 31 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 679 / 866 |
| Version history: | 11 change(s) |
| Referenced in: | #1003674 - Standard Classes + Interfaces (LIVE continued in #1034167) |