/** * 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(); } }
/** * 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(); } }
private static int swtVersion(final int major, final int minor) { return Library.SWT_VERSION(major, minor); }
/** * Returns the SWT version number as an integer. Example: "SWT051" == 51 * * @return the SWT version number */ public static int getVersion() { return Library.SWT_VERSION; }