2323import com .intellij .ide .projectView .ProjectView ;
2424import com .intellij .ide .projectView .impl .ProjectViewPane ;
2525import 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 ;
2926import com .intellij .lang .javascript .psi .JSFile ;
3027import com .intellij .lang .jsgraphql .JSGraphQLFileType ;
3128import com .intellij .lang .jsgraphql .JSGraphQLParserDefinition ;
3936import com .intellij .lang .jsgraphql .ide .editor .JSGraphQLQueryContextHighlightVisitor ;
4037import com .intellij .lang .jsgraphql .ide .endpoints .JSGraphQLEndpoint ;
4138import 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 ;
4242import com .intellij .lang .jsgraphql .languageservice .JSGraphQLNodeLanguageServiceClient ;
4343import com .intellij .lang .jsgraphql .languageservice .JSGraphQLNodeLanguageServiceInstance ;
4444import com .intellij .lang .jsgraphql .psi .JSGraphQLFile ;
@@ -130,13 +130,13 @@ public class JSGraphQLLanguageUIProjectService implements Disposable, FileEditor
130130
131131 private static final String FILE_URL_PROPERTY = "fileUrl" ;
132132
133- private final JSLanguageCompilerToolWindowManager myToolWindowManager ;
133+ private final JSGraphQLLanguageToolWindowManager myToolWindowManager ;
134134 private boolean myToolWindowManagerInitialized = false ;
135135
136136 @ NotNull
137137 private final Project myProject ;
138138
139- private final Map <String , ImmutableList <JSLanguageCompilerResult >> fileUriToErrors = Maps .newConcurrentMap ();
139+ private final Map <String , ImmutableList <JSGraphQLErrorResult >> fileUriToErrors = Maps .newConcurrentMap ();
140140
141141 private final Object myLock = new Object ();
142142
@@ -158,7 +158,7 @@ public void actionPerformed(AnActionEvent e) {
158158 };
159159
160160 // 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 );
162162 Disposer .register (this , this .myToolWindowManager );
163163
164164 // 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
214214 });
215215 }
216216
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 );
219219 fileUriToErrors .put (file .getVirtualFile ().getUrl (), errorsList );
220220 UIUtil .invokeLaterIfNeeded (() -> {
221221 myToolWindowManager .logCurrentErrors (errorsList , false );
@@ -534,7 +534,7 @@ private void setHeadersFromOptions(JSGraphQLEndpoint endpoint, PostMethod method
534534 // -- instance management --
535535
536536 private void logErrorsForFile (VirtualFile file , boolean forceRefresh ) {
537- ImmutableList <JSLanguageCompilerResult > currentErrors = fileUriToErrors .get (file .getUrl ());
537+ ImmutableList <JSGraphQLErrorResult > currentErrors = fileUriToErrors .get (file .getUrl ());
538538 if (currentErrors != null ) {
539539 if (forceRefresh ) {
540540 myToolWindowManager .logCurrentErrors (ContainerUtil .immutableList (Collections .emptyList ()), false );
@@ -655,7 +655,7 @@ private void initToolWindow() {
655655 final ToolWindow toolWindow = ToolWindowManager .getInstance (myProject ).getToolWindow (GRAPH_QL_TOOL_WINDOW_NAME );
656656 if (toolWindow != null ) {
657657 for (Content content : toolWindow .getContentManager ().getContents ()) {
658- if (content .isCloseable () && content .getComponent () instanceof JSLanguageErrorTreeViewPanel ) {
658+ if (content .isCloseable () && content .getComponent () instanceof JSGraphQLErrorTreeViewPanel ) {
659659 toolWindow .getContentManager ().removeContent (content , true );
660660 }
661661 }
0 commit comments