Skip to content

Commit b617b22

Browse files
authored
Merge pull request #139 from SeeSharpSoft/master
Release 2.5.1
2 parents 616b789 + e7756a4 commit b617b22

25 files changed

+83
-71
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ after_success:
1515
jobs:
1616
include:
1717
- if: (branch = master AND type = push) OR (type = pull_request)
18-
env: IDEA_VERSION=LATEST-EAP-SNAPSHOT GRAMMAR_KIT_VERSION=2017.1.6
18+
env: IDEA_VERSION=PC-LATEST-EAP-SNAPSHOT GRAMMAR_KIT_VERSION=2017.1.6
1919
script: xvfb-run gradle check verifyPlugin
2020
- stage: deploy
2121
if: branch IN (Testing, Staging, Stable) AND type = push

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2.5.1
2+
Jun 25, 2019
3+
4+
FIX: ConcurrentModificationException in MultiLineCellRenderer
5+
16
2.5.0
27
May 16, 2019
38

build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ buildscript {
1010
}
1111

1212
plugins {
13-
id 'org.jetbrains.intellij' version '0.3.12'
13+
// https://github.com/JetBrains/gradle-intellij-plugin
14+
id 'org.jetbrains.intellij' version '0.4.9'
1415
id 'jacoco'
1516
id 'com.github.kt3k.coveralls' version '2.8.2'
1617
}
@@ -33,7 +34,7 @@ repositories {
3334
}
3435
dependencies {
3536
compileOnly 'org.apache.ant:ant:1.7.0'
36-
testCompile 'org.mockito:mockito-core:2.23.0'
37+
testCompile 'org.mockito:mockito-core:2.28.2'
3738
}
3839
sourceSets {
3940
main {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# https://www.jetbrains.com/intellij-repository/snapshots
44

55
name='CSV Plugin'
6-
pluginVersion=2.5.0
6+
pluginVersion=2.5.1
77
javaVersion=1.8
88
javaTargetVersion=1.8
99
downloadIntellijSources=false

src/main/java/net/seesharpsoft/intellij/plugins/csv/CsvFileTypeFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
public class CsvFileTypeFactory extends FileTypeFactory {
88
@Override
99
public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) {
10-
fileTypeConsumer.consume(CsvFileType.INSTANCE, String.join(FileTypeConsumer.EXTENSION_DELIMITER, new String[]{"csv", "CSV", "Csv"}));
10+
fileTypeConsumer.consume(CsvFileType.INSTANCE, String.join(FileTypeConsumer.EXTENSION_DELIMITER, new String[]{"csv"}));
1111
}
1212
}

src/main/java/net/seesharpsoft/intellij/plugins/csv/editor/table/swing/MultiLineCellRenderer.java

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@
1313
import javax.swing.table.TableCellRenderer;
1414
import javax.swing.text.BadLocationException;
1515
import java.awt.*;
16-
import java.util.*;
16+
import java.util.EventObject;
17+
import java.util.Iterator;
18+
import java.util.Set;
19+
import java.util.concurrent.CopyOnWriteArraySet;
1720

1821
public class MultiLineCellRenderer extends JTextArea implements TableCellRenderer, TableCellEditor {
1922

20-
private Set<CellEditorListener> cellEditorListenerSet = new HashSet<>();
23+
private Set<CellEditorListener> cellEditorListenerSet = new CopyOnWriteArraySet<>();
2124
private final UserDataHolder userDataHolder;
2225

2326
public MultiLineCellRenderer(CsvTableEditorKeyListener keyListener, UserDataHolder userDataHolderParam) {
@@ -123,11 +126,11 @@ public void cancelCellEditing() {
123126
protected void fireStopCellEditing() {
124127
ChangeEvent changeEvent = new ChangeEvent(this);
125128
synchronized (cellEditorListenerSet) {
126-
Iterator<CellEditorListener> it = cellEditorListenerSet.iterator();
127-
while (it.hasNext()) {
128-
it.next().editingStopped(changeEvent);
129-
}
130-
}
129+
Iterator<CellEditorListener> it = cellEditorListenerSet.iterator();
130+
while (it.hasNext()) {
131+
it.next().editingStopped(changeEvent);
132+
}
133+
}
131134
}
132135

133136
protected void fireCancelCellEditing() {

src/main/resources/META-INF/plugin.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@
4646

4747
<change-notes><![CDATA[
4848
<pre style="font-family: sans-serif">
49-
NEW: PSV file support
50-
FIX: NullPointerException in StorageHelper class
49+
FIX: ConcurrentModificationException in MultiLineCellRenderer
5150
</pre>
5251
]]>
5352
</change-notes>
@@ -60,6 +59,11 @@ FIX: NullPointerException in StorageHelper class
6059
<depends>com.intellij.modules.lang</depends>
6160

6261
<extensions defaultExtensionNs="com.intellij">
62+
<fileType name="FileType_CSV" implementationClass="net.seesharpsoft.intellij.plugins.csv.CsvFileType" extensions="csv"/>
63+
<fileType name="FileType_TSV" implementationClass="net.seesharpsoft.intellij.plugins.tsv.TsvFileType" extensions="tsv;tab"/>
64+
<fileType name="FileType_PSV" implementationClass="net.seesharpsoft.intellij.plugins.psv.PsvFileType" extensions="psv"/>
65+
66+
<!-- backward compatibility -->
6367
<fileTypeFactory implementation="net.seesharpsoft.intellij.plugins.csv.CsvFileTypeFactory"/>
6468
<fileTypeFactory implementation="net.seesharpsoft.intellij.plugins.tsv.TsvFileTypeFactory"/>
6569
<fileTypeFactory implementation="net.seesharpsoft.intellij.plugins.psv.PsvFileTypeFactory"/>

src/test/java/net/seesharpsoft/intellij/plugins/csv/actions/CsvChangeSeparatorActionTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package net.seesharpsoft.intellij.plugins.csv.actions;
22

33
import com.intellij.openapi.actionSystem.Presentation;
4-
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase;
4+
import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase;
55
import net.seesharpsoft.intellij.plugins.csv.settings.CsvCodeStyleSettings;
66

7-
public class CsvChangeSeparatorActionTest extends LightCodeInsightFixtureTestCase {
7+
public class CsvChangeSeparatorActionTest extends LightPlatformCodeInsightFixtureTestCase {
88

99
@Override
1010
protected String getTestDataPath() {

src/test/java/net/seesharpsoft/intellij/plugins/csv/editor/CsvAnnotatorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import com.intellij.psi.search.GlobalSearchScope;
1515
import com.intellij.testFramework.EdtTestUtil;
1616
import com.intellij.testFramework.ExpectedHighlightingData;
17-
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase;
17+
import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase;
1818
import org.jetbrains.annotations.NotNull;
1919

2020
import java.util.Collections;
@@ -23,7 +23,7 @@
2323

2424
import static net.seesharpsoft.intellij.plugins.csv.editor.CsvAnnotator.CSV_COLUMN_INFO_SEVERITY;
2525

26-
public class CsvAnnotatorTest extends LightCodeInsightFixtureTestCase {
26+
public class CsvAnnotatorTest extends LightPlatformCodeInsightFixtureTestCase {
2727

2828
@Override
2929
protected String getTestDataPath() {

src/test/java/net/seesharpsoft/intellij/plugins/csv/editor/CsvEditorSettingsProviderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package net.seesharpsoft.intellij.plugins.csv.editor;
22

33
import com.intellij.openapi.options.ConfigurationException;
4-
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase;
4+
import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase;
55

66
import java.awt.*;
77

8-
public class CsvEditorSettingsProviderTest extends LightCodeInsightFixtureTestCase {
8+
public class CsvEditorSettingsProviderTest extends LightPlatformCodeInsightFixtureTestCase {
99

1010
@Override
1111
protected String getTestDataPath() {

0 commit comments

Comments
 (0)