From 781f85db7d09d1790d79a9f17b2995baca0941b4 Mon Sep 17 00:00:00 2001 From: parrt Date: Wed, 15 Jul 2015 14:06:35 -0700 Subject: [PATCH] alter for new package structure in 4.5.1 --- .../org/antlr/intellij/plugin/preview/AltLabelTextProvider.java | 2 +- src/java/org/antlr/intellij/plugin/preview/PreviewPanel.java | 2 +- .../org/antlr/intellij/plugin/preview/ShowAmbigTreesDialog.java | 2 +- src/java/org/antlr/intellij/plugin/preview/UberTreeViewer.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/java/org/antlr/intellij/plugin/preview/AltLabelTextProvider.java b/src/java/org/antlr/intellij/plugin/preview/AltLabelTextProvider.java index 5788d2dd..16550d26 100644 --- a/src/java/org/antlr/intellij/plugin/preview/AltLabelTextProvider.java +++ b/src/java/org/antlr/intellij/plugin/preview/AltLabelTextProvider.java @@ -1,11 +1,11 @@ package org.antlr.intellij.plugin.preview; import org.antlr.intellij.plugin.parsing.PreviewInterpreterRuleContext; +import org.antlr.v4.gui.TreeTextProvider; import org.antlr.v4.runtime.Parser; import org.antlr.v4.runtime.misc.Pair; import org.antlr.v4.runtime.tree.Tree; import org.antlr.v4.runtime.tree.Trees; -import org.antlr.v4.runtime.tree.gui.TreeTextProvider; import org.antlr.v4.tool.Grammar; import org.antlr.v4.tool.Rule; import org.antlr.v4.tool.ast.AltAST; diff --git a/src/java/org/antlr/intellij/plugin/preview/PreviewPanel.java b/src/java/org/antlr/intellij/plugin/preview/PreviewPanel.java index 7e4b1c43..912714b9 100644 --- a/src/java/org/antlr/intellij/plugin/preview/PreviewPanel.java +++ b/src/java/org/antlr/intellij/plugin/preview/PreviewPanel.java @@ -15,12 +15,12 @@ import org.antlr.intellij.plugin.parsing.ParsingUtils; import org.antlr.intellij.plugin.parsing.PreviewParser; import org.antlr.intellij.plugin.profiler.ProfilerPanel; +import org.antlr.v4.gui.TreeViewer; import org.antlr.v4.runtime.CommonToken; import org.antlr.v4.runtime.Token; import org.antlr.v4.runtime.misc.Pair; import org.antlr.v4.runtime.tree.ParseTree; import org.antlr.v4.runtime.tree.TerminalNodeImpl; -import org.antlr.v4.runtime.tree.gui.TreeViewer; import org.antlr.v4.tool.Rule; import org.jetbrains.annotations.NotNull; diff --git a/src/java/org/antlr/intellij/plugin/preview/ShowAmbigTreesDialog.java b/src/java/org/antlr/intellij/plugin/preview/ShowAmbigTreesDialog.java index eae7e92b..9da47dd9 100644 --- a/src/java/org/antlr/intellij/plugin/preview/ShowAmbigTreesDialog.java +++ b/src/java/org/antlr/intellij/plugin/preview/ShowAmbigTreesDialog.java @@ -14,6 +14,7 @@ import org.antlr.intellij.plugin.Utils; import org.antlr.intellij.plugin.parsing.ParsingUtils; import org.antlr.intellij.plugin.parsing.PreviewInterpreterRuleContext; +import org.antlr.v4.gui.TreeViewer; import org.antlr.v4.runtime.Parser; import org.antlr.v4.runtime.ParserInterpreter; import org.antlr.v4.runtime.ParserRuleContext; @@ -26,7 +27,6 @@ import org.antlr.v4.runtime.misc.ParseCancellationException; import org.antlr.v4.runtime.tree.TerminalNode; import org.antlr.v4.runtime.tree.Tree; -import org.antlr.v4.runtime.tree.gui.TreeViewer; import org.antlr.v4.tool.GrammarParserInterpreter; import javax.swing.*; diff --git a/src/java/org/antlr/intellij/plugin/preview/UberTreeViewer.java b/src/java/org/antlr/intellij/plugin/preview/UberTreeViewer.java index 05629feb..aecd6d84 100644 --- a/src/java/org/antlr/intellij/plugin/preview/UberTreeViewer.java +++ b/src/java/org/antlr/intellij/plugin/preview/UberTreeViewer.java @@ -2,8 +2,8 @@ import com.intellij.ui.JBColor; import org.antlr.intellij.plugin.parsing.PreviewInterpreterRuleContext; +import org.antlr.v4.gui.TreeViewer; import org.antlr.v4.runtime.tree.Tree; -import org.antlr.v4.runtime.tree.gui.TreeViewer; import java.awt.*; import java.awt.geom.Rectangle2D;