Hi.
Some enhancement requests:
- Allow to set the language other than the default locale.
- Allow to enable/disable the undoable edits.
Best regards.
Moderator: robert
_ wrote:- Allow to set the language other than the default locale.
Locale orig = Locale.getDefault();
Locale.setDefault(new Locale("fr"));
RSyntaxTextArea textArea = new RSyntaxTextArea(25, 70);
Locale.setDefault(orig);
- Allow to enable/disable the undoable edits.
Currently I have changed the RSTA to allow to set a locale (added a class variable in RTA), this way I set it once and every time a RSTA is created it has the correct locale set. Thanks for the workaround, anyway.robert wrote:_ wrote:- Allow to set the language other than the default locale.
As a workaround, does this meet your needs?
- Code: Select all
Locale orig = Locale.getDefault();
Locale.setDefault(new Locale("fr"));
RSyntaxTextArea textArea = new RSyntaxTextArea(25, 70);
Locale.setDefault(orig);
I have a RSTA (more than one, actually) that is not editable but I change the text over time, currently I'm calling the method discardAllEdits every time I set a new text. What I want is to not have to call the method discardAllEdits each time I change the text and, more important, as I know that I will not need any undoable edit it's better to have some way to not even save them, that's why I asked for an option to enable/disable them.robert wrote:- Allow to enable/disable the undoable edits.
For this one, what are you trying to accomplish? If you just want to clear the undo stack at a given time (such as loading a new file), you can call textArea.discardAllEdits(). Or are you genuinely trying to allow the user to edit the document but not undo/redo?
Users browsing this forum: No registered users and 3 guests