Login  Register

Re: How String.copy(str) in java

Posted by Jan Eglinger on Mar 21, 2016; 2:06pm
URL: http://imagej.273.s1.nabble.com/How-String-copy-str-in-java-tp5015960p5015965.html

Hi Philippe,

to answer the second part of your question:

On 21.03.2016 12:17, Philippe CARL wrote:
> Besides answering this question, I would as well be interested in how I
> could have find this information alone, i.e. without having posted this
> thread.
>
> Indeed, I have looked for "String.copy(str)" within ij.macro. Functions.java
> without being able to locate it (as well as already posted threads about
> such a question).

You were actually very close. Searching the file Functions.java for
"copy" gives 18 instances, among them the function copyStringToClipboard():

https://github.com/imagej/ImageJA/blob/master/src/main/java/ij/macro/Functions.java#L4390-L4396

which uses code similar to the one the other answers are pointing to on
stackoverflow.com


Jan

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html