Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ease-dev] Feature request: clipboard support (or instead loading arbitrary classes by name for DIY)

Hi,


On 20.11.2014 22:35, Paul D. Fernhout wrote:
Thank you. BTW, I did write a JavaScript script to try to put text in the clipboard and to be called from a context menu, but I got an NPE when running it when the script tried to create a Display with executeUI using this

    var display = new org.eclipse.swt.widgets.Display();
I guess it is not a good idea to request a new Display instance. Display has methods getDefault() and getCurrent() which you should use. getCurrent() only works if run in the UI thread, so best go for getDefault().


Back to the top