Example usage for org.eclipse.jdt.core JavaCore VERSION_CLDC_1_1

List of usage examples for org.eclipse.jdt.core JavaCore VERSION_CLDC_1_1

Introduction

In this page you can find the example usage for org.eclipse.jdt.core JavaCore VERSION_CLDC_1_1.

Prototype

String VERSION_CLDC_1_1

To view the source code for org.eclipse.jdt.core JavaCore VERSION_CLDC_1_1.

Click Source Link

Document

Configurable option value: .

Usage

From source file:at.bestsolution.javafx.ide.jdt.internal.jdt.JavaModelUtil.java

License:Open Source License

public static boolean isVersionLessThan(String version1, String version2) {
    if (JavaCore.VERSION_CLDC_1_1.equals(version1)) {
        version1 = JavaCore.VERSION_1_1 + 'a';
    }//from w w  w.j a v a  2 s.  c o m
    if (JavaCore.VERSION_CLDC_1_1.equals(version2)) {
        version2 = JavaCore.VERSION_1_1 + 'a';
    }
    return version1.compareTo(version2) < 0;
}

From source file:org.eclipse.che.jdt.util.JavaModelUtil.java

License:Open Source License

/**
 * @param version1/*from   www  .j ava2  s . c o  m*/
 *         the first version
 * @param version2
 *         the second version
 * @return <code>true</code> iff version1 is less than version2
 */
public static boolean isVersionLessThan(String version1, String version2) {
    if (JavaCore.VERSION_CLDC_1_1.equals(version1)) {
        version1 = JavaCore.VERSION_1_1 + 'a';
    }
    if (JavaCore.VERSION_CLDC_1_1.equals(version2)) {
        version2 = JavaCore.VERSION_1_1 + 'a';
    }
    return version1.compareTo(version2) < 0;
}