SWT clipboard question
- 2012-04-02 @ 12:15
I'm looking for the way to set the text data to the system clipboard.
This is a test snippet in JRuby and SWT: https://gist.github.com/2283029
Getting the text from the system clipboard works well at line 28.
But setting doesn't at line 36. :(
I got the following error message:
NameError: no method 'setContents' for arguments (org.jruby.RubyString,
org.eclipse.swt.dnd.TextTransfer) on Java::OrgEclipseSwtDnd::Clipboard
__file__ at clipboard.rb:36
Umm,.. do you have any suggestions?
Re: SWT clipboard question
- 2012-04-12 @ 15:53
I asked in the JRuby forum: http://www.ruby-forum.com/topic/4047238
And got a solution! Now this works. Try it out. :)