Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
60,300 | File (@Nullable ExternalSourceDirectorySet sourceDirectorySet) { if (sourceDirectorySet == null) return null; return sourceDirectorySet.getOutputDir(); } | getIdeOutputDir |
60,301 | File (@Nullable ExternalSourceDirectorySet sourceDirectorySet) { if (sourceDirectorySet == null) return null; Set<File> srcDirs = sourceDirectorySet.getSrcDirs(); Collection<File> outputDirectories = sourceDirectorySet.getGradleOutputDirs(); String firstExistingLang = srcDirs.stream() .sorted() .filter(File::exists) .f... | getGradleOutputDir |
60,302 | void (@NotNull IdeaModule gradleModule, @NotNull DataNode<ModuleData> ideModule, @NotNull final DataNode<ProjectData> ideProject) { ExternalProject externalProject = getExternalProject(gradleModule, resolverCtx); if (resolverCtx.isResolveModulePerSourceSet()) { final Map<String, Pair<DataNode<GradleSourceSetData>, Exte... | populateModuleDependencies |
60,303 | void (@NotNull DataNode<? extends ModuleData> dataNode, @NotNull ExternalSourceSet sourceSet) { buildDependencies(resolverCtx, sourceSetMap, artifactsMap, dataNode, sourceSet.getDependencies(), ideProject); } | process |
60,304 | String (GradleTask task) { String taskGroup; try { taskGroup = task.getGroup(); } catch (UnsupportedMethodException e) { taskGroup = null; } return taskGroup; } | getTaskGroup |
60,305 | List<ProjectImportModelProvider> () { return ContainerUtil.append( super.getModelProviders(), new GradleSourceSetModelProvider(), new GradleTaskModelProvider(), new GradleExternalProjectModelProvider() ); } | getModelProviders |
60,306 | void (@NotNull List<String> taskNames, @NotNull Consumer<String> initScriptConsumer, @NotNull Map<String, String> parameters) { String dispatchPort = parameters.get(GradleProjectResolverExtension.DEBUG_DISPATCH_PORT_KEY); if (dispatchPort == null) { return; } String debugOptions = parameters.get(GradleProjectResolverEx... | enhanceTaskProcessing |
60,307 | DependencyScope (@Nullable IdeaDependencyScope scope) { if (scope == null) { return null; } String scopeAsString = scope.getScope(); if (scopeAsString == null) { return null; } for (DependencyScope dependencyScope : DependencyScope.values()) { if (scopeAsString.equalsIgnoreCase(dependencyScope.toString())) { return dep... | parseScope |
60,308 | IdeaModule (@NotNull IdeaModuleDependency dependency) { Method getDependencyModule = ReflectionUtil.getMethod(dependency.getClass(), "getDependencyModule"); if (getDependencyModule != null) { try { Object result = getDependencyModule.invoke(dependency); return (IdeaModule)result; } catch (IllegalAccessException | Invoc... | getDependencyModuleByReflection |
60,309 | String (File path, LibraryLevel level, DataNode<ProjectData> ideProject) { final String fileName = FileUtilRt.getNameWithoutExtension(path.getName()); if (level == LibraryLevel.MODULE) { return fileName; } else { int count = 0; while (true) { String candidateName = fileName + (count == 0 ? "" : "_" + count); DataNode<L... | chooseName |
60,310 | DataNode<ModuleData> (@NotNull ProjectResolverContext resolverCtx, @NotNull IdeaModule gradleModule, @NotNull DataNode<ProjectData> projectDataNode) { GradleProject gradleProject = gradleModule.getGradleProject(); final String moduleName = resolverCtx.isUseQualifiedModuleNames() ? gradleProject.getName() : gradleModule... | createMainModule |
60,311 | String (@NotNull ProjectResolverContext resolverCtx, @NotNull ExternalProject externalProject, @NotNull @NlsSafe String rootProjectName) { String buildSrcPrefix = getBuildSrcPrefix(resolverCtx, rootProjectName); if (!StringUtil.isEmpty(buildSrcPrefix)) { return patchBuildSrcIdentity(buildSrcPrefix, externalProject.getI... | getIdentityPath |
60,312 | String (@NotNull ProjectResolverContext ctx, @NotNull String rootProjectName) { if (ctx.getBuildSrcGroup() == null) { return null; } return ":" + ctx.getBuildSrcGroup() + ":buildSrc"; } | getBuildSrcPrefix |
60,313 | String (@NotNull String prefix, @NotNull String path) { return path.isEmpty() || path.equals(":") ? prefix : prefix + path; } | patchBuildSrcIdentity |
60,314 | GradleProject (@NotNull GradleProject project) { GradleProject result = project; while (result.getParent() != null) { result = result.getParent(); } return result; } | getRootProject |
60,315 | boolean (@NotNull DataNode<ProjectData> project, @NotNull ProjectResolverContext resolverCtx) { Boolean isSupported = IS_INCLUDED_BUILD_TASK_RUN_SUPPORTED.get(project); if (isSupported == null) { String gradleVersion = resolverCtx.getProjectGradleVersion(); isSupported = gradleVersion != null && GradleVersion.version(g... | isIncludedBuildTaskRunningSupported |
60,316 | String () { ModuleType moduleType = ModuleTypeManager.getInstance().getDefaultModuleType(); return moduleType.getId(); } | getDefaultModuleTypeId |
60,317 | String (@NotNull IdeaModule gradleModule, @NotNull ExternalProject externalProject, @NotNull ProjectResolverContext resolverCtx) { return getInternalModuleName(gradleModule, externalProject, null, resolverCtx); } | getInternalModuleName |
60,318 | String (@NotNull IdeaModule gradleModule, @NotNull ExternalProject externalProject, @Nullable String sourceSetName, @NotNull ProjectResolverContext resolverCtx) { String delimiter; StringBuilder moduleName = new StringBuilder(); String buildSrcGroup = resolverCtx.getBuildSrcGroup(gradleModule); if (resolverCtx.isUseQua... | getInternalModuleName |
60,319 | String (@NotNull String rootName, @NotNull String gradlePath) { return (gradlePath.startsWith(":") ? rootName + "." : "") + Arrays.stream(gradlePath.split(":")) .filter(s -> !s.isEmpty()) .collect(Collectors.joining(".")); } | gradlePathToQualifiedName |
60,320 | String (@NotNull ProjectResolverContext resolverCtx, @NotNull IdeaModule gradleModule, @NotNull String rootProjectPath) { ExternalProject externalProject = resolverCtx.getExtraProject(gradleModule, ExternalProject.class); if (externalProject != null) { File projectDir = externalProject.getProjectDir(); return ExternalS... | getModuleConfigPath |
60,321 | String (@NotNull ProjectResolverContext resolverCtx, @NotNull IdeaModule gradleModule) { ExternalProject externalProject = resolverCtx.getExtraProject(gradleModule, ExternalProject.class); if (externalProject == null) { throw new IllegalStateException( "Missing " + ExternalProject.class.getSimpleName() + " for " + grad... | getModuleId |
60,322 | String (String gradlePath, String moduleName) { return StringUtil.isEmpty(gradlePath) || ":".equals(gradlePath) ? moduleName : gradlePath; } | getModuleId |
60,323 | String (@NotNull ExternalProject externalProject) { return getModuleId(externalProject.getIdentityPath(), externalProject.getName()); } | getModuleId |
60,324 | String (@NotNull ExternalProject externalProject, @NotNull ExternalSourceSet sourceSet) { String mainModuleId = getModuleId(externalProject); return mainModuleId + ":" + sourceSet.getName(); } | getModuleId |
60,325 | String (@NotNull ProjectResolverContext resolverCtx, @NotNull IdeaModule gradleModule, @NotNull ExternalSourceSet sourceSet) { String mainModuleId = getModuleId(resolverCtx, gradleModule); return mainModuleId + ":" + sourceSet.getName(); } | getModuleId |
60,326 | String (@NotNull ExternalProjectDependency projectDependency) { DependencyScope dependencyScope = getDependencyScope(projectDependency.getScope()); String projectPath = projectDependency.getProjectPath(); String moduleId = StringUtil.isEmpty(projectPath) || ":".equals(projectPath) ? projectDependency.getName() : projec... | getModuleId |
60,327 | String (final Module module) { if (!ExternalSystemApiUtil.isExternalSystemAwareModule(GradleConstants.SYSTEM_ID, module)) return null; if (!GradleConstants.GRADLE_SOURCE_SET_MODULE_TYPE_KEY.equals(ExternalSystemApiUtil.getExternalModuleType(module))) return null; String externalProjectId = ExternalSystemApiUtil.getExte... | getSourceSetName |
60,328 | String (final Module module) { return getGradleIdentityPathOrNull(module); } | getGradlePath |
60,329 | String (final Module module) { if (!ExternalSystemApiUtil.isExternalSystemAwareModule(GradleConstants.SYSTEM_ID, module)) return null; final String externalProjectId = ExternalSystemApiUtil.getExternalProjectId(module); if (externalProjectId == null) return null; final String moduleType = ExternalSystemApiUtil.getExter... | getGradleIdentityPathOrNull |
60,330 | DependencyScope (@Nullable String scope) { return scope != null ? DependencyScope.valueOf(scope) : DependencyScope.COMPILE; } | getDependencyScope |
60,331 | void (@NotNull final IdeaModule gradleModule, @Nullable final File libFile, @NotNull final LibraryData library, @NotNull final ProjectResolverContext resolverCtx) { if (libFile == null || !libFile.getName().startsWith("gradle-")) return; final BuildScriptClasspathModel buildScriptClasspathModel = resolverCtx.getExtraPr... | attachGradleSdkSources |
60,332 | void (@Nullable final File libFile, @NotNull final LibraryData library, @NotNull final File gradleHomeDir, @NotNull final GradleVersion gradleVersion) { if (libFile == null || !libFile.getName().startsWith("gradle-")) return; if (!FileUtil.isAncestor(gradleHomeDir, libFile, true)) { File libFileParent = libFile.getPare... | attachGradleSdkSources |
60,333 | void (File gradleUserHomeDir, LibraryData libraryData) { attachSourcesAndJavadocFromGradleCacheIfNeeded(null, gradleUserHomeDir, libraryData); } | attachSourcesAndJavadocFromGradleCacheIfNeeded |
60,334 | void (ProjectResolverContext context, File gradleUserHomeDir, LibraryData libraryData) { boolean sourceResolved = !libraryData.getPaths(LibraryPathType.SOURCE).isEmpty(); boolean docResolved = !libraryData.getPaths(LibraryPathType.DOC).isEmpty(); if (sourceResolved && docResolved) { return; } Map<String, Map<LibraryPat... | attachSourcesAndJavadocFromGradleCacheIfNeeded |
60,335 | void (@NotNull Map<LibraryPathType, List<String>> target, @NotNull Map<LibraryPathType, List<Path>> collected) { for (Map.Entry<LibraryPathType, List<Path>> entry : collected.entrySet()) { Set<String> pathStrings = entry.getValue() .stream() .map(v -> v.toString()) .collect(Collectors.toSet()); target.computeIfAbsent(e... | mergeCollectedArtifacts |
60,336 | Set<LibraryPathType> (boolean sourceResolved, boolean docResolved) { Set<LibraryPathType> requiredComponentTypes = EnumSet.noneOf(LibraryPathType.class); if (!sourceResolved) { requiredComponentTypes.add(LibraryPathType.SOURCE); } if (!docResolved) { requiredComponentTypes.add(LibraryPathType.DOC); } return requiredCom... | getRequiredComponentTypes |
60,337 | void (@NotNull String binaryPath, @NotNull Map<LibraryPathType, List<String>> collect, boolean sourceResolved, boolean docResolved) { final Path file = Paths.get(binaryPath); Path binaryFileParent = file.getParent(); if (!Files.isDirectory(binaryFileParent)) return; try (Stream<Path> list = Files.list(binaryFileParent)... | collectSourcesAndJavadocsFromTheSameFolder |
60,338 | LibraryDependencyData (ExternalProjectDependency projectDependency, int classpathOrderShift, ModuleData ownerModule, DependencyScope dependencyScope) { final LibraryLevel level = LibraryLevel.MODULE; final LibraryData library = new LibraryData(GradleConstants.SYSTEM_ID, ""); LibraryDependencyData libraryDependencyData ... | createLibraryDependencyData |
60,339 | void (@NotNull ProjectResolverContext resolverCtx, UnresolvedExternalDependency unresolvedDep, String ownerModuleId) { final String libraryName = unresolvedDep.getId().getPresentableName(); final String failureMessage = unresolvedDep.getFailureMessage(); boolean isOfflineWork = resolverCtx.getSettings() != null && reso... | reportUnresolvedDependencyError |
60,340 | ModuleData (@NotNull DataNode<? extends ExternalEntityData> ownerDataNode) { ModuleData result = null; ExternalEntityData ownerData = ownerDataNode.getData(); if (ownerData instanceof ModuleData moduleData) { result = moduleData; } else if (ownerData instanceof DependencyData<?> dependencyData) { result = dependencyDat... | getOwnerModule |
60,341 | boolean (@NotNull ExternalSourceSet sourceSet) { if (sourceSet.getSources().isEmpty()) return false; return sourceSet.getSources().keySet().stream().allMatch(IExternalSystemSourceType::isTest); } | isTestSourceSet |
60,342 | Collection<File> (Collection<ProjectDependencyInfo> infos) { return infos.stream().flatMap((info) -> info.dependencyArtifacts.stream()).collect(Collectors.toSet()); } | collectProcessedArtifacts |
60,343 | boolean (Collection<ProjectDependencyInfo> infos, GradleSourceSetData data) { return infos.stream().noneMatch((info) -> info.myModuleData.equals(data)); } | doesNotContainDependencyOn |
60,344 | boolean (/*@NotNull*/ ProjectResolverContext context, @Nullable DataNode<ProjectData> ideProject, @NotNull final LibraryData library) { return linkProjectLibrary(ideProject, library); } | linkProjectLibrary |
60,345 | boolean ( @Nullable DataNode<ProjectData> ideProject, @NotNull final LibraryData library) { if (ideProject == null) return false; Map<String, DataNode<LibraryData>> cache = ideProject.getUserData(LIBRARIES_BY_NAME_CACHE); if (cache == null) { cache = new HashMap<>(); ideProject.putUserData(LIBRARIES_BY_NAME_CACHE, cach... | linkProjectLibrary |
60,346 | boolean (final String taskName, @Nullable String group) { if ((group == null || "ide".equalsIgnoreCase(group)) && StringUtil.containsIgnoreCase(taskName, "idea")) return true; return "other".equalsIgnoreCase(group) && StringUtil.containsIgnoreCase(taskName, "idea"); } | isIdeaTask |
60,347 | DataNode<ModuleData> (@Nullable final DataNode<ProjectData> projectNode, @NotNull final String modulePath) { if (projectNode == null) return null; return ExternalSystemApiUtil.find(projectNode, ProjectKeys.MODULE, node -> node.getData().getLinkedExternalProjectPath().equals(modulePath)); } | findModule |
60,348 | DataNode<ModuleData> (@Nullable final DataNode<ProjectData> projectNode, @NotNull final String path) { if (projectNode == null) return null; return ExternalSystemApiUtil.find(projectNode, ProjectKeys.MODULE, node -> node.getData().getId().equals(path)); } | findModuleById |
60,349 | Stream<GradleProjectResolverExtension> (@Nullable ProjectResolverContext projectResolverContext) { return GradleProjectResolverExtension.EP_NAME.getExtensionList().stream().map(extension -> { try { Constructor<? extends GradleProjectResolverExtension> constructor = extension.getClass().getDeclaredConstructor(); constru... | createProjectResolvers |
60,350 | boolean (@NotNull ExternalSystemTaskId id, @NotNull ExternalSystemTaskNotificationListener listener) { for (CancellationTokenSource cancellationTokenSource : myCancellationMap.get(id)) { cancellationTokenSource.cancel(); } return true; } | cancelTask |
60,351 | DataNode<ProjectData> (@NotNull ProjectImportAction.AllModels allModels, @NotNull GradleExecutionSettings executionSettings, @NotNull DefaultProjectResolverContext resolverCtx, @Nullable GradleVersion gradleVersion, @NotNull GradleProjectResolverExtension tracedResolverChain, @NotNull PerformanceTrace performanceTrace,... | convertData |
60,352 | void (DefaultProjectResolverContext ctx, DataNode<ProjectData> projectDataNode) { // since Gradle 8.0 buildSrc are available as composite build members DataNode<CompositeBuildData> compositeNode = find(projectDataNode, CompositeBuildData.KEY); if (compositeNode == null) return; GradleBuildSrcProjectsResolver.Index inde... | processBuildSrcModules |
60,353 | void (@NotNull GradleExecutionSettings executionSettings, @NotNull DefaultProjectResolverContext resolverCtx, boolean isBuildSrcProject) { executionSettings.withArgument("-Didea.gradle.download.sources=" + executionSettings.isDownloadSources()); executionSettings.withArgument("-Didea.sync.active=true"); if (resolverCtx... | configureExecutionArgumentsAndVmOptions |
60,354 | boolean (@NotNull String requiredVersion, @NotNull DefaultProjectResolverContext ctx) { String versionStr = ctx.getProjectGradleVersion(); if (versionStr != null) { return GradleVersion.version(versionStr).compareTo(GradleVersion.version(requiredVersion)) >= 0; } return false; } | isGradleVersionAtLeast |
60,355 | Collection<IdeaModule> (ProjectImportAction.AllModels allModels, DefaultProjectResolverContext resolverCtx, DataNode<ProjectData> projectDataNode) { if (resolverCtx.getSettings() != null && !resolverCtx.getSettings().getExecutionWorkspace().getBuildParticipants().isEmpty()) { return Collections.emptyList(); } Composite... | exposeCompositeBuild |
60,356 | void (@NotNull ProjectResolverContext context, @NotNull DataNode<ProjectData> projectDataNode, @NotNull File gradleUserHomeDir, @Nullable File gradleHomeDir, @Nullable GradleVersion gradleVersion) { final Map<String, Pair<DataNode<GradleSourceSetData>, ExternalSourceSet>> sourceSetMap = projectDataNode.getUserData(RESO... | mergeLibraryAndModuleDependencyData |
60,357 | void (@NotNull ProjectImportAction.AllModels models, @NotNull ProjectResolverContext resolverCtx, boolean useCustomSerialization) { resolverCtx.setModels(models); final Class<? extends ExternalProject> modelClazz = resolverCtx.isPreviewMode() ? ExternalProjectPreview.class : ExternalProject.class; final ExternalProject... | extractExternalProjectModels |
60,358 | String () { return String.valueOf(count); } | toString |
60,359 | void (@NotNull Map<String, Pair<DataNode<ModuleData>, IdeaModule>> moduleMap, @NotNull ProjectResolverContext resolverCtx) { final Map<String, Counter> weightMap = new HashMap<>(); for (final Pair<DataNode<ModuleData>, IdeaModule> pair : moduleMap.values()) { final DataNode<ModuleData> moduleNode = pair.first; for (Dat... | mergeSourceSetContentRoots |
60,360 | void (@NotNull Map<String, Counter> weightMap, @NotNull ExternalProject externalProject, @NotNull DataNode<? extends ModuleData> moduleNode) { final File buildDir = externalProject.getBuildDir(); final MultiMap<String, ContentRootData> sourceSetRoots = MultiMap.create(); Collection<DataNode<ContentRootData>> contentRoo... | mergeModuleContentRoots |
60,361 | DataNode<ProjectData> (ProjectConnection connection) { ExternalSystemTaskId taskId = myResolverContext.getExternalSystemTaskId(); final long activityId = taskId.getId(); try { myCancellationMap.putValue(taskId, myResolverContext.getCancellationTokenSource()); myResolverContext.setConnection(connection); return doResolv... | fun |
60,362 | Throwable (Throwable e) { if (e instanceof BuildActionFailureException) { return extractCause(e.getCause()); } // Exceptions returned by Gradle TAPI have classes loaded by a separate classloader Class<? extends Throwable> exceptionClass = e.getClass(); if (exceptionClass.getName().equals(ProjectConfigurationException.c... | extractCause |
60,363 | GradleProjectResolverExtension () { return createProjectResolverChain(null, null); } | createProjectResolverChain |
60,364 | GradleProjectResolverExtension (@Nullable DefaultProjectResolverContext resolverContext, @Nullable Predicate<? super GradleProjectResolverExtension> extensionsFilter) { Stream<GradleProjectResolverExtension> extensions = GradleProjectResolverUtil.createProjectResolvers(resolverContext); if (extensionsFilter != null) { ... | createProjectResolverChain |
60,365 | ExternalSystemException (@Nullable BuildEnvironment buildEnvironment, @NotNull Throwable error, @NotNull String projectPath, @Nullable String buildFilePath) { ExternalSystemException friendlyError = super.getUserFriendlyError(buildEnvironment, error, projectPath, buildFilePath); return new BaseProjectImportErrorHandler... | getUserFriendlyError |
60,366 | String (@NotNull String changedFileOrDirPath, @NotNull Project project) { if (!changedFileOrDirPath.endsWith("." + GradleConstants.EXTENSION) && !changedFileOrDirPath.endsWith("." + GradleConstants.KOTLIN_DSL_SCRIPT_EXTENSION)) { return null; } if (isInsideCompileOutput(changedFileOrDirPath, project)) { return null; } ... | getAffectedExternalProjectPath |
60,367 | boolean (@NotNull String path, @NotNull Project project) { final String url = VfsUtilCore.pathToUrl(path); boolean isInsideProjectCompile = Optional.ofNullable(CompilerProjectExtension.getInstance(project)) .map(CompilerProjectExtension::getCompilerOutputUrl) .filter(outputUrl -> VfsUtilCore.isEqualOrAncestor(outputUrl... | isInsideCompileOutput |
60,368 | List<File> (@NotNull String externalProjectPath, @NotNull Project project) { GradleSettings settings = GradleSettings.getInstance(project); GradleProjectSettings projectSettings = settings.getLinkedProjectSettings(externalProjectPath); if (projectSettings == null) { return null; } return GradleAutoReloadSettingsCollect... | getAffectedExternalProjectFiles |
60,369 | List<File> (@NotNull Project project, @NotNull GradleProjectSettings projectSettings) { String gradleUserHome = ObjectUtils.chooseNotNull( GradleSettings.getInstance(project).getServiceDirectoryPath(), new BuildLayoutParameters().getGradleUserHomeDir().getPath() ); String externalProjectPath = projectSettings.getExtern... | collectSettingsFiles |
60,370 | List<File> (@NotNull Project project, @NotNull GradleProjectSettings projectSettings) { String externalProjectPath = projectSettings.getExternalProjectPath(); List<File> files = new SmartList<>(); var node = ExternalSystemApiUtil.findProjectNode(project, GradleConstants.SYSTEM_ID, externalProjectPath); if (node != null... | collectSettingsFiles |
60,371 | List<File> (@NotNull Project project, @NotNull GradleProjectSettings projectSettings) { String externalProjectPath = projectSettings.getExternalProjectPath(); List<File> files = new SmartList<>(); if (projectSettings.getDistributionType() == DistributionType.DEFAULT_WRAPPED) { files.add(new File(externalProjectPath, "g... | collectSettingsFiles |
60,372 | List<File> (@NotNull Project project, @NotNull GradleProjectSettings projectSettings) { List<File> files = new SmartList<>(); for (String modulePath : projectSettings.getModules()) { ProgressManager.checkCanceled(); try { Files.walkFileTree(Paths.get(modulePath), EnumSet.noneOf(FileVisitOption.class), 1, new SimpleFile... | collectSettingsFiles |
60,373 | FileVisitResult (Path path, BasicFileAttributes attrs) { String fileName = path.getFileName().toString(); if (fileName.endsWith('.' + GradleConstants.EXTENSION) || fileName.endsWith('.' + GradleConstants.KOTLIN_DSL_SCRIPT_EXTENSION)) { File file = path.toFile(); if (file.isFile()) files.add(file); } return FileVisitRes... | visitFile |
60,374 | boolean (@Nullable ProjectResolverPolicy resolverPolicy) { return resolverPolicy == null || !resolverPolicy.isPartialDataResolveAllowed(); } | isApplicable |
60,375 | ProjectCoordinate (Module module) { if (!ExternalSystemApiUtil.isExternalSystemAwareModule(GradleConstants.SYSTEM_ID, module)) { return null; } DataNode<? extends ModuleData> moduleData = CachedModuleDataFinder.getInstance(module.getProject()).findModuleData(module); return moduleData != null ? moduleData.getData().get... | findProjectId |
60,376 | Key<ContentRootData> () { return ProjectKeys.CONTENT_ROOT; } | getTargetDataKey |
60,377 | void (@NotNull Collection<? extends DataNode<ContentRootData>> toImport, @Nullable ProjectData projectData, @NotNull Project project, @NotNull IdeModifiableModelsProvider modelsProvider) { if (!Registry.get(REGISTRY_KEY).asBoolean()) { return; } if (toImport.isEmpty()) { return; } MultiMap<DataNode<ModuleData>, DataNod... | importData |
60,378 | void (@NotNull IdeModifiableModelsProvider modelsProvider, @NotNull final Collection<? extends DataNode<ContentRootData>> data, @NotNull final Module module) { final ModifiableRootModel modifiableRootModel = modelsProvider.getModifiableRootModel(module); for (final DataNode<ContentRootData> node : data) { final Content... | importData |
60,379 | ContentEntry (@NotNull ModifiableRootModel model, @NotNull String path) { ContentEntry[] entries = model.getContentEntries(); for (ContentEntry entry : entries) { VirtualFile file = entry.getFile(); if (file != null && ExternalSystemApiUtil.getLocalFileSystemPath(file).equals(path)) { return entry; } } return null; } | findContentRoot |
60,380 | void (@NotNull String format, Object... args) { if (LOG.isDebugEnabled()) { LOG.debug(String.format(format, args)); } } | logDebug |
60,381 | ExternalProjectDataCache (@NotNull Project project) { return project.getService(ExternalProjectDataCache.class); } | getInstance |
60,382 | Key<CompositeBuildData> () { return CompositeBuildData.KEY; } | getTargetDataKey |
60,383 | void (final @NotNull Collection<? extends DataNode<CompositeBuildData>> toImport, @Nullable ProjectData projectData, @NotNull final Project project, @NotNull IdeModifiableModelsProvider modelsProvider) { if (toImport.isEmpty()) { if (projectData != null) { GradleProjectSettings projectSettings = GradleSettings.getInsta... | importData |
60,384 | Key<GradleSourceSetData> () { return GradleSourceSetData.KEY; } | getTargetDataKey |
60,385 | Computable<Collection<Module>> (final @NotNull Collection<? extends DataNode<GradleSourceSetData>> toImport, @NotNull final ProjectData projectData, @NotNull final Project project, @NotNull final IdeModifiableModelsProvider modelsProvider) { return () -> { List<Module> orphanIdeModules = new SmartList<>(); for (Module ... | computeOrphanData |
60,386 | Module (@NotNull DataNode<GradleSourceSetData> sourceSetModuleNode, @NotNull IdeModifiableModelsProvider modelsProvider) { //noinspection unchecked DataNode<ModuleData> parentModuleNode = (DataNode<ModuleData>)sourceSetModuleNode.getParent(); assert parentModuleNode != null; Module parentModule = parentModuleNode.getUs... | createModule |
60,387 | String (@NotNull String moduleName, @NotNull IdeModifiableModelsProvider modelsProvider) { Module ideModule = modelsProvider.findIdeModule(moduleName); if (ideModule == null) { return moduleName; } int i = 0; while (true) { String nextModuleNameCandidate = moduleName + "~" + ++i; ideModule = modelsProvider.findIdeModul... | findDeduplicatedModuleName |
60,388 | void (Module module, DataNode<GradleSourceSetData> moduleDataNode) { super.setModuleOptions(module, moduleDataNode); ExternalSystemModulePropertyManager.getInstance(module).setExternalModuleType(GradleConstants.GRADLE_SOURCE_SET_MODULE_TYPE_KEY); } | setModuleOptions |
60,389 | Key<GradleExtensions> () { return KEY; } | getTargetDataKey |
60,390 | void (@NotNull Collection<? extends DataNode<GradleExtensions>> toImport, @Nullable ProjectData projectData, @NotNull Project project, @NotNull IdeModifiableModelsProvider modelsProvider) { if (projectData == null || toImport.isEmpty()) { return; } GradleExtensionsSettings.getInstance(project).add(projectData.getLinked... | importData |
60,391 | ProjectSystemId () { return GradleConstants.SYSTEM_ID; } | getTargetExternalSystemId |
60,392 | boolean (@NotNull Throwable error) { Throwable unwrapped = RemoteUtil.unwrap(error); String message = unwrapped.getMessage(); if ("Compilation failed; see the compiler error output for details.".equals(message)) { // compiler errors should be handled by BuildOutputParsers return true; } if (unwrapped.getCause() instanc... | isInternalError |
60,393 | void ( @NotNull NotificationData notification, @NotNull Project project, @NotNull String externalProjectPath, @Nullable Throwable error ) { if (error == null) return; Throwable unwrapped = RemoteUtil.unwrap(error); if (unwrapped instanceof ExternalSystemException) { updateNotification(notification, project, (ExternalSy... | customize |
60,394 | void (@NotNull final NotificationData notificationData, @NotNull final Project project, @NotNull ExternalSystemException e) { for (String fix : e.getQuickFixes()) { if (OpenGradleSettingsCallback.ID.equals(fix)) { notificationData.setListener(OpenGradleSettingsCallback.ID, new OpenGradleSettingsCallback(project)); } el... | updateNotification |
60,395 | void (@NotNull Notification notification, @NotNull HyperlinkEvent event) { if (myNotificationData.getFilePath() == null) return; VirtualFile virtualFile = LocalFileSystem.getInstance().refreshAndFindFileByPath(myNotificationData.getFilePath()); assert virtualFile != null; int line = myNotificationData.getLine() - 1; in... | hyperlinkActivated |
60,396 | void (@NotNull Notification notification, @NotNull HyperlinkEvent event) { ExternalSystemManager<?, ?, ?, ?, ?> manager = ExternalSystemApiUtil.getManager(GradleConstants.SYSTEM_ID); assert manager instanceof GradleManager; GradleManager gradleManager = (GradleManager)manager; final Configurable configurable = gradleMa... | hyperlinkActivated |
60,397 | boolean (@NotNull Configuration configuration, boolean defaultResult) { if (is33OrBetter) { return configuration.isCanBeResolved(); } return defaultResult; } | isConfigurationCanBeResolved |
60,398 | String (@NotNull ProjectComponentIdentifier identifier) { if (is45OrBetter) { return identifier.getProjectName(); } return identifier.getProjectPath(); } | getProjectName |
60,399 | String (@NotNull Project project) { if (is33OrBetter) { return project.getDisplayName(); } if (project.getParent() == null && project.getGradle().getParent() == null) { return "root project '" + project.getName() + "'"; } return "project '" + project.getPath() + "'"; } | getProjectDisplayName |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.