forked from fanruan/design
Browse Source
Merge in DESIGN/design from ~HADES/design:release/10.0 to release/10.0 * commit '76d04b898fa90242ae30e38560066a1b04f7e3cf': REPORT-38653 设计器在线更新升级适配jdk11 REPORT-38681 向右再移动一个位置 避免光标太接近文字内容 REPORT-38681 修复数据集-sql面板光标显示不正常feature/big-screen
Hades
4 years ago
4 changed files with 49 additions and 5 deletions
@ -0,0 +1,38 @@ |
|||||||
|
package com.fr.design.jdk; |
||||||
|
|
||||||
|
import com.fr.stable.StableUtils; |
||||||
|
|
||||||
|
/** |
||||||
|
* 设计器运行jdk版本 |
||||||
|
* |
||||||
|
* @author hades |
||||||
|
* @version 10.0 |
||||||
|
* Created by hades on 2020/9/27 |
||||||
|
*/ |
||||||
|
public enum JdkVersion { |
||||||
|
|
||||||
|
/** |
||||||
|
* 小于或等于jdk 8 |
||||||
|
*/ |
||||||
|
LE_8 { |
||||||
|
|
||||||
|
@Override |
||||||
|
public boolean support() { |
||||||
|
return StableUtils.getMajorJavaVersion() <= 8; |
||||||
|
} |
||||||
|
}, |
||||||
|
|
||||||
|
/** |
||||||
|
* 大于或等于jdk 9 |
||||||
|
*/ |
||||||
|
GE_9 { |
||||||
|
|
||||||
|
@Override |
||||||
|
public boolean support() { |
||||||
|
return StableUtils.getMajorJavaVersion() >= 9; |
||||||
|
} |
||||||
|
}; |
||||||
|
|
||||||
|
|
||||||
|
abstract public boolean support(); |
||||||
|
} |
Loading…
Reference in new issue