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
« May 2013  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
10
11
12
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
Context Free Art (*.cfdg)   0.31   34653
German Localization light   4.4.2.1   9809
R Edit Mode - extensive version   0.1   9528
Advanced HTML edit mode   1.0   9012
JBuilder scheme   .001   8862
Matlab Edit Mode   1.0   8857
XP icons for jEdit   1.1   8741
ColdFusion scheme   1.0   8343
BBEdit scheme   1.0   8330
jEdit XP icons   1.0   8328