Transpiled version (8722L) is out of date.
import javax.swing.undo.UndoManager; svoid clearTextComponentUndoList(JTextComponent c) swing { //printVars clearTextComponentUndoList(l := l(getText(c)), +c); ifclass RSyntaxTextArea //print("RSyntaxTextArea"); if (c cast RSyntaxTextArea) ret with c.discardAllEdits(); endif UndoManager undo = cast metaGet(c, "UndoManager"); if (undo != null) undo.discardAllEdits(); }
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: | 124 / 180 |
Version history: | 6 change(s) |
Referenced in: | [show references] |