Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
59,700 | boolean () { return ExternalStorageConfigurationManager.getInstance(getProject()).isEnabled(); } | getStoreProjectFilesExternally |
59,701 | void (boolean value) { ExternalProjectsManagerImpl.getInstance(getProject()).setStoreExternally(value); } | setStoreProjectFilesExternally |
59,702 | boolean () { return isDownloadSources; } | isDownloadSources |
59,703 | void (boolean downloadSources) { isDownloadSources = downloadSources; } | setDownloadSources |
59,704 | boolean () { return isParallelModelFetch; } | isParallelModelFetch |
59,705 | void (boolean parallelModelFetch) { isParallelModelFetch = parallelModelFetch; } | setParallelModelFetch |
59,706 | void (@NotNull GradleProjectSettings old, @NotNull GradleProjectSettings current) { if (!Objects.equals(old.getGradleHome(), current.getGradleHome())) { getPublisher().onGradleHomeChange(old.getGradleHome(), current.getGradleHome(), current.getExternalProjectPath()); } if (!Objects.equals(old.getGradleJvm(), current.ge... | checkSettings |
59,707 | void () { ApplicationManager.getApplication().getMessageBus() .connect(this) .subscribe(AdvancedSettingsChangeListener.TOPIC, new AdvancedSettingsChangeListener() { @Override public void advancedSettingChanged(@NotNull String id, @NotNull Object oldValue, @NotNull Object newValue) { if ("gradle.download.sources".equals... | subscribeOnAdvancedSettings |
59,708 | void (@NotNull String id, @NotNull Object oldValue, @NotNull Object newValue) { if ("gradle.download.sources".equals(id) && newValue instanceof Boolean) { isDownloadSources = (boolean)newValue; } } | advancedSettingChanged |
59,709 | Set<GradleProjectSettings> () { return myProjectSettings; } | getLinkedExternalProjectsSettings |
59,710 | void (Set<GradleProjectSettings> settings) { if (settings != null) { myProjectSettings.addAll(settings); } } | setLinkedExternalProjectsSettings |
59,711 | boolean () { return isOfflineMode; } | isOfflineMode |
59,712 | void (boolean isOfflineMode) { this.isOfflineMode = isOfflineMode; } | setOfflineMode |
59,713 | boolean () { return isParallelModelFetch; } | isParallelModelFetch |
59,714 | void (boolean parallelModelFetch) { isParallelModelFetch = parallelModelFetch; } | setParallelModelFetch |
59,715 | void (@NotNull SearchableOptionProcessor processor) { String gradleJvmLabel = GradleBundle.message("gradle.settings.text.jvm.path"); processor.addOptions("jvm", null, gradleJvmLabel, GradleConfigurable.ID, GradleConfigurable.DISPLAY_NAME, true); processor.addOptions("gradle", null, gradleJvmLabel, GradleConfigurable.ID... | processOptions |
59,716 | void (@Nullable String oldPath, @Nullable String newPath, @NotNull String linkedProjectPath) { } | onGradleHomeChange |
59,717 | void (DistributionType currentValue, @NotNull String linkedProjectPath) { } | onGradleDistributionTypeChange |
59,718 | void (@Nullable String oldPath, @Nullable String newPath) { } | onServiceDirectoryPathChange |
59,719 | void (@Nullable String oldGradleJvm, @Nullable String newGradleJvm, @NotNull String linkedProjectPath) { } | onGradleJvmChange |
59,720 | void (@Nullable String oldOptions, @Nullable String newOptions) { } | onGradleVmOptionsChange |
59,721 | void (boolean delegatedBuild, @NotNull String linkedProjectPath) { } | onBuildDelegationChange |
59,722 | void (@NotNull TestRunner currentTestRunner, @NotNull String linkedProjectPath) { } | onTestRunnerChange |
59,723 | Icon () { return GradleIcons.Gradle; } | getIcon |
59,724 | Icon (ExternalSystemBeforeRunTask task) { return GradleIcons.Gradle; } | getTaskIcon |
59,725 | ExternalSystemBeforeRunTask (@NotNull RunConfiguration runConfiguration) { return new ExternalSystemBeforeRunTask(ID, GradleConstants.SYSTEM_ID); } | createTask |
59,726 | Result (@NotNull final String line, final int entireLength) { String[] filePrefixes = new String[]{"Build file '", "build file '", "Settings file '", "settings file '"}; String[] linePrefixes = new String[]{"' line: ", "': ", "' line: ", "': "}; String filePrefix = null; String linePrefix = null; for (int i = 0; i < fi... | applyFilter |
59,727 | String () { return myFilteredFileName; } | getFilteredFileName |
59,728 | int () { return myFilteredLineNumber; } | getFilteredLineNumber |
59,729 | ProjectSystemId () { return GradleConstants.SYSTEM_ID; } | getExternalSystemId |
59,730 | ExecutionConsole (@NotNull Project project, @NotNull ExternalSystemTask task, @Nullable ExecutionEnvironment env, @Nullable ProcessHandler processHandler) { ConsoleView executionConsole = TextConsoleBuilderFactory.getInstance().createBuilder(project).getConsole(); executionConsole.attachToProcess(processHandler); Filte... | attachExecutionConsole |
59,731 | boolean (@NotNull ExternalSystemTask task) { return GradleConstants.SYSTEM_ID.equals(task.getId().getProjectSystemId()); } | isApplicableFor |
59,732 | Filter[] (@NotNull Project project, @NotNull ExternalSystemTask task, @Nullable ExecutionEnvironment env) { if (task instanceof ExternalSystemExecuteTaskTask) { return new Filter[]{new ReRunTaskFilter((ExternalSystemExecuteTaskTask)task, env)}; } else if (task instanceof ExternalSystemResolveProjectTask) { return new F... | getCustomExecutionFilters |
59,733 | boolean () { return !GradleSettings.getInstance(project).getLinkedProjectsSettings().isEmpty(); } | isGradleProject |
59,734 | List<String> () { return myTasks; } | getTasks |
59,735 | boolean (@NotNull Module module) { return ExternalSystemApiUtil.isExternalSystemAwareModule(GradleConstants.SYSTEM_ID, module); } | isApplicable |
59,736 | GradleOrderEnumeratorHandler (@NotNull Module module) { for (FactoryImpl factory : EP_NAME.getExtensions()) { if (factory.isApplicable(module)) { return factory.createHandler(module); } } return new GradleOrderEnumeratorHandler(module); } | createHandler |
59,737 | boolean () { return !myResolveModulePerSourceSet; } | shouldAddRuntimeDependenciesToTestCompilationClasspath |
59,738 | boolean () { return !myResolveModulePerSourceSet; } | shouldIncludeTestsFromDependentModulesToTestClasspath |
59,739 | boolean () { return myShouldProcessDependenciesRecursively; } | shouldProcessDependenciesRecursively |
59,740 | boolean () { return false; } | areResourceFilesFromSourceRootsCopiedToOutput |
59,741 | boolean (@NotNull OrderRootType type, @NotNull ModuleRootModel rootModel, @NotNull Collection<String> result, boolean includeProduction, boolean includeTests) { if (!type.equals(OrderRootType.CLASSES)) return false; if (!ExternalSystemApiUtil.isExternalSystemAwareModule(GradleConstants.SYSTEM_ID, rootModel.getModule())... | addCustomModuleRoots |
59,742 | void (@Nullable ExternalSourceDirectorySet directorySet, @NotNull Collection<? super String> result, boolean isGradleAwareMake) { if (directorySet == null) return; if (isGradleAwareMake) { for (File outputDir : directorySet.getGradleOutputDirs()) { result.add(VfsUtilCore.pathToUrl(outputDir.getPath())); } } else if (!d... | addOutputModuleRoots |
59,743 | Component (@Nullable String pattern, boolean isSelected, boolean hasFocus) { String command = getCommand(); JPanel component = (JPanel)super.createComponent(pattern, isSelected, hasFocus); int spaceIndex = StringUtil.lastIndexOf(command, ' ', 0, command.length()); String toComplete = spaceIndex < 0 ? "" : command.subst... | createComponent |
59,744 | CachedModuleDataFinder (@NotNull Project project) { return new CachedModuleDataFinder(project); } | getInstance |
59,745 | boolean (@NotNull String line, @NotNull BuildOutputInstantReader reader, @NotNull Consumer<? super BuildEvent> messageConsumer) { MessageEvent.Kind kind = MessageEvent.Kind.ERROR; String prefix = ERROR_PREFIX; int prefixIndex = line.indexOf(ERROR_PREFIX); if (prefixIndex < 0) { kind = MessageEvent.Kind.WARNING; prefix ... | parse |
59,746 | ProjectSystemId () { return GradleConstants.SYSTEM_ID; } | getExternalSystemId |
59,747 | List<BuildOutputParser> (@NotNull ExternalSystemTaskId taskId) { List<BuildOutputParser> parsers = new SmartList<>(); if (taskId.getType().equals(ExternalSystemTaskType.RESOLVE_PROJECT)) { parsers.add(new GradleSyncOutputParser()); } parsers.add(new GradleBuildScriptErrorParser()); parsers.add(new JavacOutputParser("ja... | getBuildOutputParsers |
59,748 | HyperlinkInfo (List<String> options) { return (project) -> { ExternalSystemUtil.refreshProject(myTask.getExternalProjectPath(), new ImportSpecBuilder(myProject, myTask.getExternalSystemId()) .withArguments(StringUtil.join(options, " "))); }; } | getHyperLinkInfo |
59,749 | Result (@NotNull String line, int entireLength) { this.line = line; this.lineStart = entireLength - line.length(); this.links = new ArrayList<>(); String trimLine = line.trim(); if (!(trimLine.contains("Run with --") && (trimLine.endsWith("option to get the stack trace.") || trimLine.endsWith("option to get more log ou... | applyFilter |
59,750 | void (@NotNull String text, @NotNull String option) { int index = line.indexOf(text); if (index != -1) { links.add(createLink(lineStart + index, lineStart + index + text.length(), option)); } } | addLinkIfMatch |
59,751 | HyperlinkInfo (List<String> options) { return (project) -> { RunnerAndConfigurationSettings settings = myEnv.getRunnerAndConfigurationSettings(); if (settings == null) return; RunConfiguration conf = settings.getConfiguration(); if (!(conf instanceof ExternalSystemRunConfiguration)) return; ExternalSystemTaskExecutionS... | getHyperLinkInfo |
59,752 | boolean (@NotNull AnActionEvent e) { if (!GradleConstants.SYSTEM_ID.equals(getSystemId(e))) return false; return super.isEnabled(e); } | isEnabled |
59,753 | boolean (@NotNull AnActionEvent e) { if (!GradleConstants.SYSTEM_ID.equals(getSystemId(e))) return false; return super.isVisible(e); } | isVisible |
59,754 | void (@NotNull final Project project, @NotNull ProjectSystemId projectSystemId, @NotNull AbstractExternalEntityData externalEntityData, @NotNull AnActionEvent e) { final List<ExternalSystemNode> selectedNodes = e.getData(ExternalSystemDataKeys.SELECTED_NODES); final ExternalSystemNode<?> externalSystemNode = ContainerU... | perform |
59,755 | boolean (@NotNull AnActionEvent e) { if (!super.isEnabled(e)) return false; if (getSystemId(e) == null) return false; return e.getData(ExternalSystemDataKeys.SELECTED_PROJECT_NODE) != null; } | isEnabled |
59,756 | boolean (@NotNull AnActionEvent e) { final Project project = getProject(e); if (project == null) return false; ProjectSystemId systemId = getSystemId(e); if(!GradleConstants.SYSTEM_ID.equals(systemId)) return false; if (GradleSettings.getInstance(project).getLinkedProjectsSettings().size() > 1) { final ProjectNode proj... | isVisible |
59,757 | void (@NotNull AnActionEvent e) { final Project project = getProject(e); if (project == null) return; final ProjectNode projectNode = e.getData(ExternalSystemDataKeys.SELECTED_PROJECT_NODE); if (projectNode == null || projectNode.getData() == null) return; new GradleProjectCompositeSelectorDialog(project, projectNode.g... | actionPerformed |
59,758 | String (PsiFile file, int[] startOffsets, int[] endOffsets, String text) { return null; } | preprocessOnCopy |
59,759 | String (Project project, PsiFile file, Editor editor, String text, RawText rawText) { if (isApplicable(file) && isMvnDependency(text)) { GradleActionsUsagesCollector.trigger(project, GradleActionsUsagesCollector.PASTE_MAVEN_DEPENDENCY); GradleVersion gradleVersion = GradleUtil.getGradleVersion(project, file); return to... | preprocessOnPaste |
59,760 | boolean (PsiFile file) { return file.getName().endsWith('.' + GradleConstants.EXTENSION); } | isApplicable |
59,761 | String (@NotNull String groupId, @NotNull String artifactId, @NotNull String version, @NotNull String scope, @NotNull String classifier) { String gradleClassifier = classifier.isEmpty() ? "" : ":" + classifier; return scope + " '" + groupId + ":" + artifactId + ":" + version + gradleClassifier + "'"; } | formatGradleDependency |
59,762 | String (@NotNull String mavenDependency, @NotNull GradleVersion gradleVersion) { try { DocumentBuilder builder = JavaXmlDocumentKt.createDocumentBuilder(); Document document = builder.parse(new InputSource(new StringReader(mavenDependency))); String gradleDependency = extractGradleDependency(document, gradleVersion); r... | toGradleDependency |
59,763 | String (Document document, @NotNull GradleVersion gradleVersion) { String groupId = getGroupId(document); String artifactId = getArtifactId(document); String version = getVersion(document); String scope = getScope(document, gradleVersion); String classifier = getClassifier(document); if (groupId.isEmpty() || artifactId... | extractGradleDependency |
59,764 | String (@NotNull Document document, @NotNull GradleVersion gradleVersion) { String scope = firstOrEmpty(document.getElementsByTagName("scope")); boolean isSupportedImplementation = GradleUtil.isSupportedImplementationScope(gradleVersion); return switch (scope) { case "test" -> isSupportedImplementation ? "testImplement... | getScope |
59,765 | String (@NotNull Document document) { return firstOrEmpty(document.getElementsByTagName("version")); } | getVersion |
59,766 | String (@NotNull Document document) { return firstOrEmpty(document.getElementsByTagName("artifactId")); } | getArtifactId |
59,767 | String (@NotNull Document document) { return firstOrEmpty(document.getElementsByTagName("groupId")); } | getGroupId |
59,768 | String (@NotNull Document document) { return firstOrEmpty(document.getElementsByTagName("classifier")); } | getClassifier |
59,769 | String (@NotNull NodeList list) { Node first = list.item(0); return first != null ? first.getTextContent() : ""; } | firstOrEmpty |
59,770 | boolean (String text) { String trimmed = trimLeadingComment(text.trim()); if (trimmed.startsWith("<dependency>") && trimmed.endsWith("</dependency>")) { return true; } return false; } | isMvnDependency |
59,771 | String (String text) { int start = text.indexOf("<!--"); int end = text.indexOf("-->"); if (start == 0 && end > 0) { return text.substring(end + "-->".length()).trim(); } else { return text; } } | trimLeadingComment |
59,772 | boolean (@NotNull Editor editor, @NotNull Project project) { return false; } | requiresAllDocumentsToBeCommitted |
59,773 | void (@NotNull AnActionEvent e) { super.update(e); if (ActionPlaces.ACTION_SEARCH.equals(e.getPlace())) { Presentation p = e.getPresentation(); p.setText(GradleBundle.message("gradle.tasks.toggle.offline.search.title")); } } | update |
59,774 | boolean (@NotNull AnActionEvent e) { if (!super.isVisible(e)) return false; return GradleConstants.SYSTEM_ID.equals(getSystemId(e)); } | isVisible |
59,775 | boolean (@NotNull AnActionEvent e) { return GradleSettings.getInstance(getProject(e)).isOfflineWork(); } | doIsSelected |
59,776 | void (@NotNull AnActionEvent e, boolean state) { Project project = getProject(e); GradleSettings.getInstance(project).setOfflineWork(state); } | setSelected |
59,777 | boolean (@NotNull AnActionEvent e) { if (!super.isVisible(e)) return false; final ExternalProjectsView projectsView = e.getData(ExternalSystemDataKeys.VIEW); return projectsView == null || GradleConstants.SYSTEM_ID.equals(getSystemId(e)); } | isVisible |
59,778 | boolean (@NotNull AnActionEvent e) { return true; } | isEnabled |
59,779 | void (@NotNull AnActionEvent e) { Presentation p = e.getPresentation(); p.setVisible(isVisible(e)); p.setEnabled(isEnabled(e)); } | update |
59,780 | ActionUpdateThread () { return super.getActionUpdateThread(); } | getActionUpdateThread |
59,781 | void (@NotNull final AnActionEvent e) { final Project project = e.getProject(); if (project == null) return; RunAnythingManager runAnythingManager = RunAnythingManager.getInstance(project); runAnythingManager.show(HELP_COMMAND + " ", false, e); } | actionPerformed |
59,782 | void (@NotNull Project project, @Nullable Executor executor, @NotNull String workDirectory, @NotNull @NlsSafe String fullCommandLine) { final ExternalTaskExecutionInfo taskExecutionInfo; try { taskExecutionInfo = buildTaskInfo(workDirectory, fullCommandLine, executor); } catch (CommandLineArgumentException ex) { @NlsSa... | runGradle |
59,783 | void (@NotNull Color foregroundColor) { myForegroundColor = foregroundColor; } | setForegroundColor |
59,784 | void (@NotNull Color backgroundColor) { myBackgroundColor = backgroundColor; } | setBackgroundColor |
59,785 | void (@NotNull Font font) { myFont = font; } | setFont |
59,786 | void (@NotNull RichTextProcessor processor) { myProcessors.put(processor.getKey(), processor); } | registerProcessor |
59,787 | JComponent () { for (JComponent component : myComponents) { component.setForeground(myForegroundColor); component.setBackground(myBackgroundColor); component.setFont(myFont); } myResult.setForeground(myForegroundColor); myResult.setBackground(myBackgroundColor); myResult.setFont(myFont); GridBagConstraints constraints ... | build |
59,788 | void (@NotNull Collection<JComponent> rowComponents) { JPanel row = new MultiRowFlowPanel(FlowLayout.CENTER, 0, 3); row.setBackground(myBackgroundColor); myComponents.add(row); if (rowComponents.isEmpty()) { row.add(new JLabel(" ")); } else { for (JComponent component : rowComponents) { row.add(component); } } GridBagC... | addRow |
59,789 | boolean (int row, int column) { return false; } | isCellEditable |
59,790 | Dimension () { return getPreferredSize(); } | getPreferredScrollableViewportSize |
59,791 | JComponent () { final TableColumnModel columnModel = myTable.getColumnModel(); for (int i = 0; i < myColumnWidths.length; i++) { columnModel.getColumn(i).setMinWidth(myColumnWidths[i] + 4); } return myResult; } | build |
59,792 | JComponent (@NotNull String s) { final ActionManager actionManager = ActionManager.getInstance(); final AnAction action = actionManager.getAction(s); if (action == null) { return null; } final Presentation presentation = action.getTemplatePresentation(); if (presentation.getIcon() != null) { return new ActionButton(act... | process |
59,793 | void (Graphics g) { // Don't draw border at the inline button. ActionButtonLook look = getButtonLook(); look.paintBackground(g, this); look.paintIcon(g, this, getIcon()); } | paintButtonLook |
59,794 | void (Graphics g) { super.paint(g); final int y = g.getClipBounds().height - getFontMetrics(getFont()).getDescent() + 2; final int width = getFontMetrics(getFont()).stringWidth(getText()); g.drawLine(0, y, width, y); } | paint |
59,795 | boolean (@NotNull MouseEvent e, int clickCount) { final DataContext context = DataManager.getInstance().getDataContextFromFocus().getResult(); if (context == null) { return false; } final Presentation presentation = new PresentationFactory().getPresentation(action); action.actionPerformed(new AnActionEvent( e, context,... | onClick |
59,796 | String () { return "action"; } | getKey |
59,797 | JComponent () { ToolbarDecorator decorator = ToolbarDecorator.createDecorator(myTree). addExtraAction(new SelectAllButton()). addExtraAction(new UnselectAllButton()). setToolbarPosition(ActionToolbarPosition.BOTTOM); contentPanel.add(decorator.createPanel()); return mainPanel; } | createCenterPanel |
59,798 | void () { if (myCompositeRootSettings != null) { Pair[] compositeParticipants = myTree.getCheckedNodes(Pair.class, null); if (compositeParticipants.length == 0) { myCompositeRootSettings.setCompositeBuild(null); } else { GradleProjectSettings.CompositeBuild compositeBuild = new GradleProjectSettings.CompositeBuild(); c... | doOKAction |
59,799 | void () { super.dispose(); } | dispose |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.