23
23
import com .intellij .ide .projectView .ProjectView ;
24
24
import com .intellij .ide .projectView .impl .ProjectViewPane ;
25
25
import com .intellij .json .JsonFileType ;
26
- import com .intellij .lang .javascript .compiler .JSLanguageCompilerResult ;
27
- import com .intellij .lang .javascript .compiler .ui .JSLanguageCompilerToolWindowManager ;
28
- import com .intellij .lang .javascript .compiler .ui .JSLanguageErrorTreeViewPanel ;
29
26
import com .intellij .lang .javascript .psi .JSFile ;
30
27
import com .intellij .lang .jsgraphql .JSGraphQLFileType ;
31
28
import com .intellij .lang .jsgraphql .JSGraphQLParserDefinition ;
39
36
import com .intellij .lang .jsgraphql .ide .editor .JSGraphQLQueryContextHighlightVisitor ;
40
37
import com .intellij .lang .jsgraphql .ide .endpoints .JSGraphQLEndpoint ;
41
38
import com .intellij .lang .jsgraphql .ide .endpoints .JSGraphQLEndpointsModel ;
39
+ import com .intellij .lang .jsgraphql .ide .project .toolwindow .JSGraphQLErrorResult ;
40
+ import com .intellij .lang .jsgraphql .ide .project .toolwindow .JSGraphQLLanguageToolWindowManager ;
41
+ import com .intellij .lang .jsgraphql .ide .project .toolwindow .JSGraphQLErrorTreeViewPanel ;
42
42
import com .intellij .lang .jsgraphql .languageservice .JSGraphQLNodeLanguageServiceClient ;
43
43
import com .intellij .lang .jsgraphql .languageservice .JSGraphQLNodeLanguageServiceInstance ;
44
44
import com .intellij .lang .jsgraphql .psi .JSGraphQLFile ;
@@ -130,13 +130,13 @@ public class JSGraphQLLanguageUIProjectService implements Disposable, FileEditor
130
130
131
131
private static final String FILE_URL_PROPERTY = "fileUrl" ;
132
132
133
- private final JSLanguageCompilerToolWindowManager myToolWindowManager ;
133
+ private final JSGraphQLLanguageToolWindowManager myToolWindowManager ;
134
134
private boolean myToolWindowManagerInitialized = false ;
135
135
136
136
@ NotNull
137
137
private final Project myProject ;
138
138
139
- private final Map <String , ImmutableList <JSLanguageCompilerResult >> fileUriToErrors = Maps .newConcurrentMap ();
139
+ private final Map <String , ImmutableList <JSGraphQLErrorResult >> fileUriToErrors = Maps .newConcurrentMap ();
140
140
141
141
private final Object myLock = new Object ();
142
142
@@ -158,7 +158,7 @@ public void actionPerformed(AnActionEvent e) {
158
158
};
159
159
160
160
// tool window
161
- myToolWindowManager = new JSLanguageCompilerToolWindowManager (project , GRAPH_QL_TOOL_WINDOW_NAME , GRAPH_QL_TOOL_WINDOW_NAME , JSGraphQLIcons .UI .GraphQLNode , restartInstanceAction );
161
+ myToolWindowManager = new JSGraphQLLanguageToolWindowManager (project , GRAPH_QL_TOOL_WINDOW_NAME , GRAPH_QL_TOOL_WINDOW_NAME , JSGraphQLIcons .UI .GraphQLNode , restartInstanceAction );
162
162
Disposer .register (this , this .myToolWindowManager );
163
163
164
164
// listen for editor file tab changes to update the list of current errors
@@ -214,8 +214,8 @@ private static void showToolWindowContent(@NotNull Project project, @NotNull Cla
214
214
});
215
215
}
216
216
217
- public void logErrorsInCurrentFile (@ NotNull PsiFile file , List <JSLanguageCompilerResult > errors ) {
218
- final ImmutableList <JSLanguageCompilerResult > errorsList = ContainerUtil .immutableList (errors );
217
+ public void logErrorsInCurrentFile (@ NotNull PsiFile file , List <JSGraphQLErrorResult > errors ) {
218
+ final ImmutableList <JSGraphQLErrorResult > errorsList = ContainerUtil .immutableList (errors );
219
219
fileUriToErrors .put (file .getVirtualFile ().getUrl (), errorsList );
220
220
UIUtil .invokeLaterIfNeeded (() -> {
221
221
myToolWindowManager .logCurrentErrors (errorsList , false );
@@ -534,7 +534,7 @@ private void setHeadersFromOptions(JSGraphQLEndpoint endpoint, PostMethod method
534
534
// -- instance management --
535
535
536
536
private void logErrorsForFile (VirtualFile file , boolean forceRefresh ) {
537
- ImmutableList <JSLanguageCompilerResult > currentErrors = fileUriToErrors .get (file .getUrl ());
537
+ ImmutableList <JSGraphQLErrorResult > currentErrors = fileUriToErrors .get (file .getUrl ());
538
538
if (currentErrors != null ) {
539
539
if (forceRefresh ) {
540
540
myToolWindowManager .logCurrentErrors (ContainerUtil .immutableList (Collections .emptyList ()), false );
@@ -655,7 +655,7 @@ private void initToolWindow() {
655
655
final ToolWindow toolWindow = ToolWindowManager .getInstance (myProject ).getToolWindow (GRAPH_QL_TOOL_WINDOW_NAME );
656
656
if (toolWindow != null ) {
657
657
for (Content content : toolWindow .getContentManager ().getContents ()) {
658
- if (content .isCloseable () && content .getComponent () instanceof JSLanguageErrorTreeViewPanel ) {
658
+ if (content .isCloseable () && content .getComponent () instanceof JSGraphQLErrorTreeViewPanel ) {
659
659
toolWindow .getContentManager ().removeContent (content , true );
660
660
}
661
661
}
0 commit comments