本文整理汇总了Java中com.intellij.util.containers.ImmutableList类的典型用法代码示例。如果您正苦于以下问题:Java ImmutableList类的具体用法?Java ImmutableList怎么用?Java ImmutableList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ImmutableList类属于com.intellij.util.containers包,在下文中一共展示了ImmutableList类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: logCurrentErrors
import com.intellij.util.containers.ImmutableList; //导入依赖的package包/类
public void logCurrentErrors(@NotNull ImmutableList<JSGraphQLErrorResult> immutableResults, boolean setActive) {
ApplicationManager.getApplication().assertIsDispatchThread();
if (myCurrentErrorTreeViewPanel == null) {
if (!myFirstInitialized || myToolWindow == null) {
return;
}
Content list = createCurrentErrorContent(myToolWindow);
myToolWindow.getContentManager().setSelectedContent(list);
show();
}
if (myFirstInitialized && myCurrentErrorTreeViewPanel != null) {
final List<JSGraphQLErrorResult> results = ContainerUtil.newArrayList(immutableResults);
if (!results.equals(myLastResult)) {
logErrorsImpl(myCurrentErrorTreeViewPanel, results);
myLastResult = results;
}
}
if (setActive) {
setActivePanel(myCurrentErrorTreeViewPanel, myToolWindow);
}
}
开发者ID:jimkyndemeyer,项目名称:js-graphql-intellij-plugin,代码行数:26,代码来源:JSGraphQLLanguageToolWindowManager.java
示例2: logErrorsInCurrentFile
import com.intellij.util.containers.ImmutableList; //导入依赖的package包/类
public void logErrorsInCurrentFile(@NotNull PsiFile file, List<JSGraphQLErrorResult> errors) {
final ImmutableList<JSGraphQLErrorResult> errorsList = ContainerUtil.immutableList(errors);
fileUriToErrors.put(file.getVirtualFile().getUrl(), errorsList);
UIUtil.invokeLaterIfNeeded(() -> {
myToolWindowManager.logCurrentErrors(errorsList, false);
});
}
开发者ID:jimkyndemeyer,项目名称:js-graphql-intellij-plugin,代码行数:8,代码来源:JSGraphQLLanguageUIProjectService.java
示例3: logErrorsForFile
import com.intellij.util.containers.ImmutableList; //导入依赖的package包/类
private void logErrorsForFile(VirtualFile file, boolean forceRefresh) {
ImmutableList<JSGraphQLErrorResult> currentErrors = fileUriToErrors.get(file.getUrl());
if(currentErrors != null) {
if(forceRefresh) {
myToolWindowManager.logCurrentErrors(ContainerUtil.immutableList(Collections.emptyList()), false);
}
myToolWindowManager.logCurrentErrors(currentErrors, false);
} else {
// files we don't know the errors for
if(myToolWindowManagerInitialized) {
// don't attempt to log errors until the view is ready
myToolWindowManager.logCurrentErrors(ContainerUtil.immutableList(Collections.emptyList()), false);
}
}
}
开发者ID:jimkyndemeyer,项目名称:js-graphql-intellij-plugin,代码行数:16,代码来源:JSGraphQLLanguageUIProjectService.java
示例4: setCurrentServerBreakpointList
import com.intellij.util.containers.ImmutableList; //导入依赖的package包/类
/** Updates the state (breakpoint list). */
public void setCurrentServerBreakpointList(ImmutableList<Breakpoint> newBreakpointList) {
currentServerBreakpointList = newBreakpointList;
}
开发者ID:GoogleCloudPlatform,项目名称:google-cloud-intellij,代码行数:5,代码来源:CloudDebugProcessState.java
示例5: getCurrentServerBreakpointList
import com.intellij.util.containers.ImmutableList; //导入依赖的package包/类
/**
* Returns a cached set of {@link Breakpoint} objects. The list is periodically updated from a
* background timer.
*
* @return the current list of breakpoints and their state
*/
@NotNull
@Transient
public ImmutableList<Breakpoint> getCurrentServerBreakpointList() {
return currentServerBreakpointList;
}
开发者ID:GoogleCloudPlatform,项目名称:google-cloud-intellij,代码行数:12,代码来源:CloudDebugProcessState.java
注:本文中的com.intellij.util.containers.ImmutableList类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论