jEdit Community - Resources for users of the jEdit Text Editor
how to Clear the clipboard ??
Submitted by DoctorSea on Monday, 14 May, 2012 - 11:36
I am trying to write a macro that clears the clipboard. This is most important to me.
I tried

a = "";
textArea.setSelection(a);
Registers.copy(textArea,'$');

and a variety of other textArea methods(viewable online) but nothing I can find helps. What am I missing ?
How does one clear the clipboard ? Any ideas anyone? Please?
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
re : how to Clear the clipboard ??
by DoctorSea on Tue, 15/05/2012 - 02:33
Apologies to all. I found it. For all the classes and methods
start at http://www.jedit.org/api/overview-summary.html then navigate
to http://www.jedit.org/api/org/gjt/sp/jedit/Registers.html
to find

a = ""; Registers.setRegister('$',a);

naturally a can be any string;
User login
Browse archives
« July 2014  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
33%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1092
Syndication
file   ver   dls
German Localization light   4.4.2.1   46064
Context Free Art (*.cfdg)   0.31   36671
R Edit Mode - extensive version   0.1   10904
JBuilder scheme   .001   10600
Advanced HTML edit mode   1.0   10358
Matlab Edit Mode   1.0   10225
BBEdit scheme   1.0   10164
ColdFusion scheme   1.0   10152
jEdit XP icons   1.0   9681
XP icons for jEdit   1.1   9625