Merge pull request #274 from lhaeger/jdk11-compat

Add OpenJDK11 compatibility
This commit is contained in:
Emmanuel Dupuy 2019-11-17 19:09:06 +01:00 committed by GitHub
commit b92538364f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -105,6 +105,7 @@ task proguard(type: proguard.gradle.ProGuardTask, dependsOn: 'jar') {
injars jar.archivePath
outjars 'build/libs/' + project.name + '-' + project.version + '-min.jar'
libraryjars System.getProperty('java.home') + '/lib/rt.jar'
libraryjars System.getProperty('java.home') + '/jmods/'
}
// Java executable wrapper for Windows //

View File

@ -1,7 +1,7 @@
apply plugin: 'java'
dependencies {
compile 'com.fifesoft:rsyntaxtextarea:2.5.6'
compile 'com.fifesoft:rsyntaxtextarea:3.0.4'
compile 'org.ow2.asm:asm:7.1'
compile 'org.jd:jd-core:' + parent.jdCoreVersion
compile project(':api')

View File

@ -27,7 +27,7 @@ public class TextPage extends AbstractTextPage implements ContentCopyable, Conte
if (textArea.getSelectionStart() == textArea.getSelectionEnd()) {
getToolkit().getSystemClipboard().setContents(new StringSelection(""), null);
} else {
textArea.copyAsRtf();
textArea.copyAsStyledText();
}
}