|
1 | 1 | package edu.berkeley.cs61b.plugin;
|
2 | 2 |
|
3 |
| -import java.io.BufferedReader; |
4 |
| -import java.io.File; |
5 |
| -import java.io.IOException; |
6 |
| -import java.io.InputStream; |
7 |
| -import java.io.InputStreamReader; |
8 |
| -import java.nio.file.Path; |
9 |
| -import java.nio.file.Paths; |
10 |
| -import java.util.ArrayList; |
11 |
| -import java.util.Collections; |
12 |
| -import java.util.LinkedList; |
13 |
| -import java.util.List; |
14 |
| - |
15 |
| -import org.jetbrains.annotations.NotNull; |
16 |
| -import org.xml.sax.InputSource; |
17 |
| - |
18 | 3 | import com.intellij.execution.filters.OpenFileHyperlinkInfo;
|
19 | 4 | import com.intellij.execution.ui.ConsoleView;
|
20 | 5 | import com.intellij.execution.ui.ConsoleViewContentType;
|
21 |
| -import com.intellij.openapi.actionSystem.ActionUpdateThread; |
22 | 6 | import com.intellij.openapi.actionSystem.AnAction;
|
23 | 7 | import com.intellij.openapi.actionSystem.AnActionEvent;
|
24 | 8 | import com.intellij.openapi.actionSystem.CommonDataKeys;
|
|
36 | 20 | import com.puppycrawl.tools.checkstyle.api.AuditEvent;
|
37 | 21 | import com.puppycrawl.tools.checkstyle.api.AuditListener;
|
38 | 22 | import com.puppycrawl.tools.checkstyle.api.Configuration;
|
| 23 | +import org.xml.sax.InputSource; |
| 24 | + |
| 25 | +import java.io.BufferedReader; |
| 26 | +import java.io.File; |
| 27 | +import java.io.IOException; |
| 28 | +import java.io.InputStream; |
| 29 | +import java.io.InputStreamReader; |
| 30 | +import java.nio.file.Path; |
| 31 | +import java.nio.file.Paths; |
| 32 | +import java.util.ArrayList; |
| 33 | +import java.util.Collections; |
| 34 | +import java.util.LinkedList; |
| 35 | +import java.util.List; |
39 | 36 |
|
40 | 37 | public class CheckStyleAction extends AnAction {
|
41 | 38 | private static final String CONFIG_ROOT = "style_config/";
|
@@ -87,11 +84,6 @@ public void actionPerformed(AnActionEvent event) {
|
87 | 84 | }
|
88 | 85 | }
|
89 | 86 |
|
90 |
| - @Override |
91 |
| - public @NotNull ActionUpdateThread getActionUpdateThread() { |
92 |
| - return ActionUpdateThread.BGT; |
93 |
| - } |
94 |
| - |
95 | 87 | private void collectFiles(VirtualFile[] parent, List<File> list) {
|
96 | 88 | LinkedList<VirtualFile> sources = new LinkedList<>();
|
97 | 89 | Collections.addAll(sources, parent);
|
|
0 commit comments