Transpiled version (8722L) is out of date.
1 | import javax.swing.undo.UndoManager; |
2 | |
3 | svoid clearTextComponentUndoList(JTextComponent c) swing {
|
4 | //printVars clearTextComponentUndoList(l := l(getText(c)), +c); |
5 | ifclass RSyntaxTextArea |
6 | //print("RSyntaxTextArea");
|
7 | if (c cast RSyntaxTextArea) |
8 | ret with c.discardAllEdits(); |
9 | endif |
10 | |
11 | UndoManager undo = cast metaGet(c, "UndoManager"); |
12 | if (undo != null) |
13 | undo.discardAllEdits(); |
14 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1035174 |
| Snippet name: | clearTextComponentUndoList |
| Eternal ID of this version: | #1035174/7 |
| Text MD5: | 8b830ae23aff6d1aed97373e47836e7d |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-04-04 00:55:39 |
| Source code size: | 415 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 332 / 430 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |