Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2019-02-10 07:01:01 -0500
committerKarsten Thoms2019-02-10 07:48:54 -0500
commit3db8c41531f3660150594a387d12145dab0767a5 (patch)
treeea6bbf18db88ae3fc2b8bb1bd2c7c8f60f101de5 /org.eclipse.ui.genericeditor.tests
parente59d62445cd49073cf39e806ac6eded078115fed (diff)
downloadeclipse.platform.text-3db8c41531f3660150594a387d12145dab0767a5.tar.gz
eclipse.platform.text-3db8c41531f3660150594a387d12145dab0767a5.tar.xz
eclipse.platform.text-3db8c41531f3660150594a387d12145dab0767a5.zip
Bug 518569 - Use StandardCharset constantsI20190210-2135I20190210-1800
Also: version bump for 4.11 Change-Id: I7055e6a2ceb521dbe6065888b735ac62caa73ef6 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
Diffstat (limited to 'org.eclipse.ui.genericeditor.tests')
-rw-r--r--org.eclipse.ui.genericeditor.tests/META-INF/MANIFEST.MF2
-rw-r--r--org.eclipse.ui.genericeditor.tests/pom.xml2
-rw-r--r--org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/AbstratGenericEditorTest.java7
3 files changed, 6 insertions, 5 deletions
diff --git a/org.eclipse.ui.genericeditor.tests/META-INF/MANIFEST.MF b/org.eclipse.ui.genericeditor.tests/META-INF/MANIFEST.MF
index a54a74258..6fc9d3932 100644
--- a/org.eclipse.ui.genericeditor.tests/META-INF/MANIFEST.MF
+++ b/org.eclipse.ui.genericeditor.tests/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Plugin.name
Bundle-SymbolicName: org.eclipse.ui.genericeditor.tests;singleton:=true
-Bundle-Version: 1.1.100.qualifier
+Bundle-Version: 1.1.200.qualifier
Bundle-Vendor: %Plugin.providerName
Bundle-Localization: plugin
Export-Package: org.eclipse.ui.genericeditor.tests,
diff --git a/org.eclipse.ui.genericeditor.tests/pom.xml b/org.eclipse.ui.genericeditor.tests/pom.xml
index 8bbdc4a99..7c77d66aa 100644
--- a/org.eclipse.ui.genericeditor.tests/pom.xml
+++ b/org.eclipse.ui.genericeditor.tests/pom.xml
@@ -19,7 +19,7 @@
</parent>
<groupId>org.eclipse.ui</groupId>
<artifactId>org.eclipse.ui.genericeditor.tests</artifactId>
- <version>1.1.100-SNAPSHOT</version>
+ <version>1.1.200-SNAPSHOT</version>
<packaging>eclipse-test-plugin</packaging>
<properties>
<testSuite>${project.artifactId}</testSuite>
diff --git a/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/AbstratGenericEditorTest.java b/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/AbstratGenericEditorTest.java
index 3e6589d52..6cd63024c 100644
--- a/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/AbstratGenericEditorTest.java
+++ b/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/AbstratGenericEditorTest.java
@@ -14,6 +14,7 @@
package org.eclipse.ui.genericeditor.tests;
import java.io.ByteArrayInputStream;
+import java.nio.charset.StandardCharsets;
import org.junit.After;
import org.junit.Before;
@@ -58,7 +59,7 @@ public class AbstratGenericEditorTest {
project = ResourcesPlugin.getWorkspace().getRoot().getProject(getClass().getName() + System.currentTimeMillis());
project.create(null);
project.open(null);
- project.setDefaultCharset("UTF-8", null);
+ project.setDefaultCharset(StandardCharsets.UTF_8.name(), null);
createAndOpenFile();
}
@@ -75,8 +76,8 @@ public class AbstratGenericEditorTest {
*/
protected void createAndOpenFile(String name, String contents) throws Exception {
this.file = project.getFile(name);
- this.file.create(new ByteArrayInputStream(contents.getBytes("UTF-8")), true, null);
- this.file.setCharset("UTF-8", null);
+ this.file.create(new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)), true, null);
+ this.file.setCharset(StandardCharsets.UTF_8.name(), null);
this.editor = (ExtensionBasedTextEditor) PlatformUI.getWorkbench().getActiveWorkbenchWindow()
.getActivePage().openEditor(new FileEditorInput(this.file), "org.eclipse.ui.genericeditor.GenericEditor");
}

Back to the top