Skip to content

Commit

Permalink
[TESTS] mitigate EAP API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SeeSharpSoft committed Nov 18, 2018
1 parent f82b5e1 commit 5565591
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.intellij.openapi.util.text.StringUtilRt;
import com.intellij.openapi.vfs.VirtualFile;
import net.seesharpsoft.intellij.plugins.csv.editor.CsvEditorSettingsExternalizable;
import org.jdom.Attribute;
import org.jdom.Element;
import org.jetbrains.annotations.NotNull;

Expand Down Expand Up @@ -74,8 +75,9 @@ public void write(@NotNull Project project, @NotNull Element element) {
public static CsvTableEditorState create(@NotNull Element element, @NotNull Project project, @NotNull VirtualFile file) {
CsvTableEditorState state = new CsvTableEditorState();

Attribute attribute = element.getAttribute("showInfoPanel");
state.setShowInfoPanel(
StringUtilRt.parseBoolean(element.getAttributeValue("showInfoPanel"), CsvEditorSettingsExternalizable.getInstance().showTableEditorInfoPanel())
attribute == null ? CsvEditorSettingsExternalizable.getInstance().showTableEditorInfoPanel() : Boolean.parseBoolean(attribute.getValue())
);
state.setRowLines(
StringUtilRt.parseInt(element.getAttributeValue("rowLines"), CsvEditorSettingsExternalizable.getInstance().getTableEditorRowHeight())
Expand Down

0 comments on commit 5565591

Please sign in to comment.