Java 类org.eclipse.swt.internal.Library 实例源码

项目:gef-gwt    文件:SWTException.java   
/**
 * Outputs a printable representation of this exception's stack trace on the
 * standard error stream.
 * <p>
 * Note: printStackTrace(PrintStream) and printStackTrace(PrintWriter) are
 * not provided in order to maintain compatibility with CLDC.
 * </p>
 */
public void printStackTrace() {
    super.printStackTrace();
    if (Library.JAVA_VERSION < Library.JAVA_VERSION(1, 4, 0)
            && throwable != null) {
        System.err.println("*** Stack trace of contained exception ***"); //$NON-NLS-1$
        throwable.printStackTrace();
    }
}
项目:gef-gwt    文件:SWTError.java   
/**
 * Outputs a printable representation of this error's stack trace on the
 * standard error stream.
 * <p>
 * Note: printStackTrace(PrintStream) and printStackTrace(PrintWriter) are
 * not provided in order to maintain compatibility with CLDC.
 * </p>
 */
public void printStackTrace() {
    super.printStackTrace();
    if (Library.JAVA_VERSION < Library.JAVA_VERSION(1, 4, 0)
            && throwable != null) {
        System.err.println("*** Stack trace of contained error ***"); //$NON-NLS-1$
        throwable.printStackTrace();
    }
}
项目:gama    文件:PlatformHelper.java   
private static int swtVersion(final int major, final int minor) {
    return Library.SWT_VERSION(major, minor);
}
项目:gef-gwt    文件:SWT.java   
/**
 * Returns the SWT version number as an integer. Example: "SWT051" == 51
 * 
 * @return the SWT version number
 */
public static int getVersion() {
    return Library.SWT_VERSION;
}