*** empty log message ***

This commit is contained in:
Caspian Rychlik-Prince 2004-08-11 15:37:40 +00:00
parent 743bbad6c7
commit dd0886851a
5 changed files with 89 additions and 2 deletions

View file

@ -42,7 +42,7 @@ import java.io.IOException;
* @version $Revision$
*/
public final class Sys {
public static final String VERSION = "0.91";
public static final String VERSION = "0.92";
/** Low process priority. @see #setProcessPriority() */
public static final int LOW_PRIORITY = -1;
@ -259,4 +259,28 @@ public final class Sys {
* Where necessary, we use a native implementation of openURL.
*/
private static native void nOpenURL(String url);
/**
* Get the contents of the system clipboard. The system might not have a clipboard
* (particularly if it doesn't even have a keyboard) in which case we return null.
* Otherwise we return a String, which may be the empty string "".
* @return a String, or null if there is no system clipboard.
*/
public static native String getClipboard();
/**
* Set the contents of the system clipboard. The system might not have a clipboard
* (particularly if it doesn't even have a keyboard) in which case we silently
* ignore this method as a no-op.<p>Passing null is allowed and is effectively the
* same as passing the empty string "".
* @param newClip the new clipboard contents
*/
public static void setClipboard(String newClip) {
if (newClip == null) {
newClip = "";
}
nSetClipboard(newClip);
}
private static native void nSetClipboard(String newClip);
}