forked from deepin-community/eclipse-platform-text
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update eclipse-platform-text to 4.26
Eclipse JFace Text Issue: deepin-community/sig-deepin-sysdev-team#547 Log: update repo
- Loading branch information
Showing
209 changed files
with
6,444 additions
and
5,921 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<extensions> | ||
<extension> | ||
<groupId>org.eclipse.tycho.extras</groupId> | ||
<artifactId>tycho-pomless</artifactId> | ||
<version>2.4.0</version> | ||
</extension> | ||
<extension> | ||
<groupId>org.eclipse.tycho</groupId> | ||
<artifactId>tycho-build</artifactId> | ||
<version>3.0.0</version> | ||
</extension> | ||
</extensions> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
eclipse-platform-text (4.26-1) unstable; urgency=medium | ||
|
||
* New upstream release | ||
- Depend on libswt-gtk-4-java (>= 4.21) | ||
- Build org.eclipse.jface.text with Java 11 | ||
* Standards-Version updated to 4.6.1 | ||
* Track and download the new releases from GitHub | ||
|
||
-- Emmanuel Bourg <[email protected]> Thu, 08 Dec 2022 19:17:54 +0100 | ||
|
||
eclipse-platform-text (4.21-1) unstable; urgency=medium | ||
|
||
* New upstream release | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
version=4 | ||
opts="mode=git,repack,compression=xz,uversionmangle=s/_/./g" \ | ||
https://git.eclipse.org/r/platform/eclipse.platform.text refs/tags/R([\d_]+[az]?) | ||
https://github.com/eclipse-platform/eclipse.platform.text refs/tags/R([\d_]+[az]?) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
93 changes: 93 additions & 0 deletions
93
...re.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/ConvertLineDelemiterTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2022 Joerg Kubitz and others. | ||
* | ||
* This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License 2.0 | ||
* which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Joerg Kubitz - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.core.filebuffers.tests; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
|
||
import java.io.ByteArrayInputStream; | ||
import java.io.InputStream; | ||
import java.nio.file.Files; | ||
import java.util.Arrays; | ||
import java.util.function.Function; | ||
|
||
import org.junit.Test; | ||
|
||
|
||
import org.eclipse.core.runtime.IPath; | ||
import org.eclipse.core.runtime.Path; | ||
|
||
import org.eclipse.core.resources.IFile; | ||
import org.eclipse.core.resources.IProject; | ||
import org.eclipse.core.resources.ResourcesPlugin; | ||
|
||
import org.eclipse.core.filebuffers.FileBuffers; | ||
import org.eclipse.core.filebuffers.manipulation.ConvertLineDelimitersOperation; | ||
import org.eclipse.core.filebuffers.manipulation.FileBufferOperationRunner; | ||
|
||
public class ConvertLineDelemiterTest { | ||
|
||
private static final String[] DELIMS= new String[] { | ||
"\r", | ||
"\n", | ||
"\r\n", | ||
}; | ||
|
||
@Test | ||
public void testWithDelimnAtEnd() throws Exception { | ||
test(delim -> delim + "line1" + delim + "line2" + delim + delim + "line3" + delim); | ||
} | ||
|
||
@Test | ||
public void testWithoutDelimnAtEnd() throws Exception { | ||
test(delim -> "line1" + delim + "line2" + delim + delim + "line3"); | ||
} | ||
|
||
void test(Function<String, String> testFile) throws Exception { | ||
IProject p= ResourcesPlugin.getWorkspace().getRoot().getProject("ConvertLineDelemiterTest"); | ||
p.create(null); | ||
p.open(null); | ||
try { | ||
for (String outputDelim : DELIMS) { | ||
IFile[] files= new IFile[DELIMS.length]; | ||
int i= 0; | ||
for (String inputDelim : DELIMS) { | ||
String input= testFile.apply(inputDelim); | ||
IFile file= ResourcesPlugin.getWorkspace().getRoot().getFile(new Path("/ConvertLineDelemiterTest/test" + i + ".txt")); | ||
InputStream s= new ByteArrayInputStream(input.getBytes()); | ||
file.create(s, true, null); | ||
files[i++]= file; | ||
} | ||
FileBufferOperationRunner runner= new FileBufferOperationRunner(FileBuffers.getTextFileBufferManager(), null); | ||
ConvertLineDelimitersOperation op= new ConvertLineDelimitersOperation(outputDelim); | ||
runner.execute(Arrays.stream(files).map(f -> f.getFullPath()).toArray(IPath[]::new), op, null); | ||
for (IFile file : files) { | ||
String actual= Files.readString(file.getLocation().toFile().toPath()); | ||
String expected= testFile.apply(outputDelim); | ||
assertEquals(readable(expected), readable(actual)); | ||
} | ||
for (IFile file : files) { | ||
file.delete(true, null); | ||
} | ||
} | ||
} finally { | ||
p.delete(true, null); | ||
} | ||
} | ||
|
||
private String readable(String s) { | ||
s= s.replace("\r", "\\r"); | ||
s= s.replace("\n", "\\n"); | ||
return s; | ||
} | ||
} |
Oops, something went wrong.