Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
276,500 | void (final @NotNull Project project, final @NotNull ProjectSystemId externalSystemId, final @NotNull String externalProjectPath, final @NotNull ExternalProjectRefreshCallback callback, final boolean isPreviewMode, final @NotNull ProgressExecutionMode progressExecutionMode) { var builder = new ImportSpecBuilder(project... | refreshProject |
276,501 | void (final @NotNull Project project, final @NotNull ProjectSystemId externalSystemId, final @NotNull String externalProjectPath, final @NotNull ExternalProjectRefreshCallback callback, final boolean isPreviewMode, final @NotNull ProgressExecutionMode progressExecutionMode, final boolean reportRefreshError) { var build... | refreshProject |
276,502 | void (@NotNull String externalProjectPath, @NotNull ImportSpecBuilder importSpecBuilder) { refreshProject(externalProjectPath, importSpecBuilder.build()); } | refreshProject |
276,503 | void (final @NotNull String externalProjectPath, final @NotNull ImportSpec importSpec) { var project = importSpec.getProject(); var externalSystemId = importSpec.getExternalSystemId(); var isPreviewMode = importSpec.isPreviewMode(); TransactionGuard.getInstance().assertWriteSafeContext(ModalityState.defaultModalityStat... | refreshProject |
276,504 | ExternalSystemTaskId () { return taskId; } | getId |
276,505 | void (@NotNull ProgressIndicator indicator) { var activity = ExternalSystemStatUtilKt.importActivityStarted(project, externalSystemId, null); try { executeSync(externalProjectPath, importSpec, resolveProjectTask, indicator); } finally { activity.finished(); } } | execute |
276,506 | void ( @NotNull String externalProjectPath, @NotNull ImportSpec importSpec, @NotNull ExternalSystemResolveProjectTask resolveProjectTask, @NotNull ProgressIndicator indicator ) { var project = importSpec.getProject(); var taskId = resolveProjectTask.getId(); var externalSystemId = taskId.getProjectSystemId(); var callb... | executeSync |
276,507 | void () { super.cancel(); resolveProjectTask.cancel(); } | cancel |
276,508 | void () { resolveProjectTask.cancel(); closeInput(); } | destroyProcessImpl |
276,509 | void (@NotNull ExternalSystemTaskId id, String workingDir) { if (isPreviewMode) return; var buildDescriptor = createSyncDescriptor( externalProjectPath, importSpec, resolveProjectTask, processHandler, consoleView, consoleManager ); eventDispatcher.onEvent(id, new StartBuildEventImpl(buildDescriptor, BuildBundle.message... | onStart |
276,510 | void (@NotNull ExternalSystemTaskId id, @NotNull String text, boolean stdOut) { processHandler.notifyTextAvailable(text, stdOut ? ProcessOutputTypes.STDOUT : ProcessOutputTypes.STDERR); eventDispatcher.setStdOut(stdOut); eventDispatcher.append(text); } | onTaskOutput |
276,511 | void (@NotNull ExternalSystemTaskId id, @NotNull Exception e) { finishSyncEventSupplier.set(() -> { var eventTime = System.currentTimeMillis(); var eventMessage = BuildBundle.message("build.status.failed"); var externalSystemName = externalSystemId.getReadableName(); var title = ExternalSystemBundle.message("notificati... | onFailure |
276,512 | void (@NotNull ExternalSystemTaskId id) { finishSyncEventSupplier.set(() -> { var eventTime = System.currentTimeMillis(); var eventMessage = BuildBundle.message("build.status.cancelled"); var eventResult = new FailureResultImpl(); return new FinishBuildEventImpl(id, null, eventTime, eventMessage, eventResult); }); proc... | onCancel |
276,513 | void (@NotNull ExternalSystemTaskId id) { finishSyncEventSupplier.set(() -> { var eventTime = System.currentTimeMillis(); var eventMessage = BuildBundle.message("build.status.finished"); var eventResult = new SuccessResultImpl(); return new FinishBuildEventImpl(id, null, eventTime, eventMessage, eventResult); }); proce... | onSuccess |
276,514 | void (@NotNull ExternalSystemTaskNotificationEvent event) { if (isPreviewMode) return; if (event instanceof ExternalSystemBuildEvent) { var buildEvent = ((ExternalSystemBuildEvent)event).getBuildEvent(); eventDispatcher.onEvent(event.getId(), buildEvent); } else if (event instanceof ExternalSystemTaskExecutionEvent) { ... | onStatusChange |
276,515 | DefaultBuildDescriptor ( @NotNull String externalProjectPath, @NotNull ImportSpec importSpec, @NotNull ExternalSystemResolveProjectTask resolveProjectTask, @NotNull ExternalSystemProcessHandler processHandler, @Nullable ExecutionConsole consoleView, @NotNull ExternalSystemExecutionConsoleManager<ExecutionConsole, Proce... | createSyncDescriptor |
276,516 | void (@NotNull AnActionEvent e) { e.getPresentation().setEnabled(processHandler.isProcessTerminated()); } | update |
276,517 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
276,518 | void (@NotNull AnActionEvent e) { e.getPresentation().setEnabled(false); Runnable rerunRunnable = importSpec instanceof ImportSpecImpl ? ((ImportSpecImpl)importSpec).getRerunAction() : null; if (rerunRunnable == null) { refreshProject(externalProjectPath, importSpec); } else { rerunRunnable.run(); } } | actionPerformed |
276,519 | void ( @NotNull String externalProjectPath, @NotNull ImportSpec importSpec, @NotNull ExternalSystemResolveProjectTask resolveProjectTask, @NotNull BuildEventDispatcher eventDispatcher, @NotNull Ref<Supplier<? extends FinishBuildEvent>> finishSyncEventSupplier ) { var project = importSpec.getProject(); var taskId = reso... | handleSyncResult |
276,520 | FinishBuildEvent ( @NotNull ExternalSystemTaskId taskId, @NotNull Ref<? extends Supplier<? extends FinishBuildEvent>> finishSyncEventSupplier ) { Exception exception = null; var finishBuildEventSupplier = finishSyncEventSupplier.get(); if (finishBuildEventSupplier != null) { try { return finishBuildEventSupplier.get();... | getSyncFinishEvent |
276,521 | boolean ( @NotNull Project project, @NotNull ProjectSystemId systemId, @NotNull Path projectRoot ) { return ExternalSystemTrustedProjectDialog.confirmLinkingUntrustedProject(project, systemId, projectRoot); } | confirmLinkingUntrustedProject |
276,522 | boolean ( @NotNull Project project, @NotNull ProjectSystemId systemId ) { return ExternalSystemTrustedProjectDialog.confirmLoadingUntrustedProject(project, systemId); } | confirmLoadingUntrustedProject |
276,523 | boolean ( @NotNull Project project, @NotNull Collection<ProjectSystemId> systemIds ) { return ExternalSystemTrustedProjectDialog.confirmLoadingUntrustedProject(project, systemIds); } | confirmLoadingUntrustedProject |
276,524 | boolean (Project project) { return project.getUserData(ExternalSystemDataKeys.NEWLY_CREATED_PROJECT) == Boolean.TRUE || project.getUserData(ExternalSystemDataKeys.NEWLY_IMPORTED_PROJECT) == Boolean.TRUE; } | isNewProject |
276,525 | void (@NotNull Module module, boolean isCreatingNewProject, boolean isMavenModule) { var project = module.getProject(); // Postpone project refresh, disable unwanted notifications project.putUserData(ExternalSystemDataKeys.NEWLY_CREATED_PROJECT, isCreatingNewProject ? Boolean.TRUE : null); project.putUserData(ExternalS... | configureNewModule |
276,526 | void (@NotNull Module module, @Nullable String moduleVersion, boolean isMavenModule) { // This module will be replaced after import // Make sure the .iml file is not created under the project dir, if 'Store generated project files externally' setting is on. ExternalSystemModulePropertyManager.getInstance(module).setMav... | markModuleAsMaven |
276,527 | FailureResultImpl ( @NotNull Throwable exception, @NotNull ProjectSystemId externalSystemId, @NotNull Project project, @NotNull ExternalSystemNotificationManager notificationManager, @NotNull NotificationData notificationData ) { if (notificationData.isBalloonNotification()) { notificationManager.showNotification(exter... | createFailureResult |
276,528 | boolean (@Nullable Navigatable navigatable) { return navigatable == null || navigatable == NonNavigatable.INSTANCE; } | isNullOrNonNavigatable |
276,529 | BuildEvent (@NotNull ExternalSystemTaskExecutionEvent event) { var buildEvent = ExternalSystemProgressEventConverter.convertBuildEvent(event); if (buildEvent == null) { // Migrated old fallback from previous implementation return new OutputBuildEventImpl( event.getProgressEvent().getEventId(), ObjectUtils.chooseNotNull... | convert |
276,530 | void (@NotNull ExternalSystemTaskExecutionSettings taskSettings, @NotNull String executorId, @NotNull Project project, @NotNull ProjectSystemId externalSystemId) { runTask(taskSettings, executorId, project, externalSystemId, null, ProgressExecutionMode.IN_BACKGROUND_ASYNC); } | runTask |
276,531 | void (final @NotNull ExternalSystemTaskExecutionSettings taskSettings, final @NotNull String executorId, final @NotNull Project project, final @NotNull ProjectSystemId externalSystemId, final @Nullable TaskCallback callback, final @NotNull ProgressExecutionMode progressExecutionMode) { runTask(taskSettings, executorId,... | runTask |
276,532 | void (final @NotNull ExternalSystemTaskExecutionSettings taskSettings, final @NotNull String executorId, final @NotNull Project project, final @NotNull ProjectSystemId externalSystemId, final @Nullable TaskCallback callback, final @NotNull ProgressExecutionMode progressExecutionMode, boolean activateToolWindowBeforeRun... | runTask |
276,533 | void (final @NotNull ExternalSystemTaskExecutionSettings taskSettings, final @NotNull String executorId, final @NotNull Project project, final @NotNull ProjectSystemId externalSystemId, final @Nullable TaskCallback callback, final @NotNull ProgressExecutionMode progressExecutionMode, boolean activateToolWindowBeforeRun... | runTask |
276,534 | void (@NotNull ProgressIndicator indicator) { indicator.setIndeterminate(true); var targetDone = new Semaphore(); var result = new Ref<>(false); var disposable = Disposer.newDisposable(); project.getMessageBus().connect(disposable).subscribe(ExecutionManager.EXECUTION_TOPIC, new ExecutionListener() { @Override public v... | execute |
276,535 | void (final @NotNull String executorIdLocal, final @NotNull ExecutionEnvironment environmentLocal) { if (executorId.equals(executorIdLocal) && environment.equals(environmentLocal)) { targetDone.down(); } } | processStartScheduled |
276,536 | void (final @NotNull String executorIdLocal, final @NotNull ExecutionEnvironment environmentLocal) { if (executorId.equals(executorIdLocal) && environment.equals(environmentLocal)) { targetDone.up(); } } | processNotStarted |
276,537 | void (@NotNull String executorIdLocal, @NotNull ExecutionEnvironment environmentLocal, @NotNull ProcessHandler handler, int exitCode) { if (executorId.equals(executorIdLocal) && environment.equals(environmentLocal)) { result.set(exitCode == 0); targetDone.up(); } } | processTerminated |
276,538 | void (@NotNull String executorId, @NotNull String externalSystemRunnerId) { if (!RUNNER_IDS.containsKey(executorId)) { RUNNER_IDS.put(executorId, externalSystemRunnerId); } else { throw new ExternalSystemException("Executor with ID " + executorId + " is already registered"); } } | registerRunnerId |
276,539 | void (final @NotNull ProjectSystemId externalSystemId, final @NotNull ExternalProjectSettings projectSettings, final @NotNull Project project, final @Nullable Consumer<? super Boolean> importResultCallback, boolean isPreviewMode, final @NotNull ProgressExecutionMode progressExecutionMode) { var systemSettings = Externa... | linkExternalProject |
276,540 | void (final @Nullable DataNode<ProjectData> externalProject) { if (externalProject == null) { if (importResultCallback != null) { importResultCallback.consume(false); } return; } ProjectDataManager.getInstance().importData(externalProject, project); if (importResultCallback != null) { importResultCallback.consume(true)... | onSuccess |
276,541 | void (@NotNull String errorMessage, @Nullable String errorDetails) { if (importResultCallback != null) { importResultCallback.consume(false); } } | onFailure |
276,542 | void (final @NotNull Project project, final @NotNull ProjectSystemId systemId) { var externalProjectsView = ExternalProjectsManagerImpl.getInstance(project).getExternalProjectsView(systemId); if (externalProjectsView instanceof ExternalProjectsViewImpl externalProjectsViewImpl) { externalProjectsViewImpl.scheduleStruct... | scheduleExternalViewStructureUpdate |
276,543 | void (Project p, Runnable r) { invokeLater(p, ModalityState.defaultModalityState(), r); } | invokeLater |
276,544 | void (final Project p, final ModalityState state, final Runnable r) { if (isNoBackgroundMode()) { r.run(); } else { ApplicationManager.getApplication().invokeLater(r, state, p.getDisposed()); } } | invokeLater |
276,545 | boolean () { return (ApplicationManager.getApplication().isUnitTestMode() || ApplicationManager.getApplication().isHeadlessEnvironment() && !PlatformUtils.isFleetBackend()); } | isNoBackgroundMode |
276,546 | void (final @Nullable DataNode<ProjectData> externalProject) { if (externalProject == null) { return; } ProjectDataManager.getInstance().importData(externalProject, myProject); } | onSuccess |
276,547 | void (@NotNull String errorMessage, @Nullable String errorDetails) { LOG.warn(errorMessage + "\n" + errorDetails); } | onFailure |
276,548 | void ( @NotNull Project project, @NotNull @Nls String title, @NotNull ProgressExecutionMode progressExecutionMode, @NotNull ExternalSystemTaskUnderProgress task ) { switch (progressExecutionMode) { case NO_PROGRESS_SYNC -> task.execute(new EmptyProgressIndicator()); case MODAL_SYNC -> new Task.Modal(project, title, tru... | executeTaskUnderProgress |
276,549 | void (@NotNull ProgressIndicator indicator) { task.execute(indicator); } | run |
276,550 | void (@NotNull ProgressIndicator indicator) { task.execute(indicator); } | run |
276,551 | void (@NotNull ProgressIndicator indicator) { task.execute(indicator); } | run |
276,552 | boolean (Runnable runnable) { return list.add(runnable); } | add |
276,553 | void () { list = new SmartList<>(); } | clear |
276,554 | void () { for (Runnable runnable : list) { runnable.run(); } } | run |
276,555 | void (@NotNull JComponent component, @NotNull MessageType messageType, @NotNull @Nls String message) { final BalloonBuilder builder = JBPopupFactory.getInstance().createHtmlTextBalloonBuilder(message, messageType, null) .setDisposable(ApplicationManager.getApplication()) .setFadeoutTime(BALLOON_FADEOUT_TIME); Balloon b... | showBalloon |
276,556 | GridBag (int indentLevel) { Insets insets = JBUI.insets(INSETS, INSETS + INSETS * indentLevel, 0, INSETS); return new GridBag().anchor(GridBagConstraints.WEST).weightx(0).insets(insets); } | getLabelConstraints |
276,557 | GridBag (int indentLevel) { Insets insets = JBUI.insets(INSETS, INSETS + INSETS * indentLevel, 0, INSETS); return new GridBag().weightx(1).coverLine().fillCellHorizontally().anchor(GridBagConstraints.WEST).insets(insets); } | getFillLineConstraints |
276,558 | GridBag (int indentLevel) { GridBag constraints = getFillLineConstraints(indentLevel); constraints.insets.top = 0; return constraints; } | getCommentConstraints |
276,559 | GridBag (int indentLevel, @NotNull JCheckBox checkBox) { GridBag constraints = getCommentConstraints(indentLevel); constraints.insets.left += UIUtil.getCheckBoxTextHorizontalOffset(checkBox); return constraints; } | getCheckBoxCommentConstraints |
276,560 | void (@NotNull JComponent component) { component.add(Box.createVerticalGlue(), new GridBag().weightx(1).weighty(1).fillCell().coverLine()); } | fillBottom |
276,561 | void (@NotNull Object o, boolean show) { for (Class<?> clazz = o.getClass(); clazz != Object.class; clazz = clazz.getSuperclass()) { for (Field field : clazz.getDeclaredFields()) { field.setAccessible(true); try { Object v = field.get(o); if (v instanceof JComponent) { ((JComponent)v).setVisible(show); } } catch (Illeg... | showUi |
276,562 | void (@NotNull Object o) { for (Class<?> clazz = o.getClass(); clazz != Object.class; clazz = clazz.getSuperclass()) { for (Field field : clazz.getDeclaredFields()) { field.setAccessible(true); try { Object v = field.get(o); if (v instanceof JComponent) { field.set(o, null); } } catch (IllegalAccessException e) { // Ig... | disposeUi |
276,563 | ExternalSystemUiAware (@NotNull ProjectSystemId externalSystemId) { ExternalSystemManager<?,?,?,?,?> manager = ExternalSystemApiUtil.getManager(externalSystemId); return manager instanceof ExternalSystemUiAware ? (ExternalSystemUiAware)manager : DefaultExternalSystemUiAware.INSTANCE; } | getUiAware |
276,564 | void (@NotNull final String actionId, @NotNull final InputEvent e) { final ActionManager actionManager = ActionManager.getInstance(); final AnAction action = actionManager.getAction(actionId); if (action == null) { return; } final Presentation presentation = new Presentation(); DataContext context = DataManager.getInst... | executeAction |
276,565 | void () { if (myBuffer == null || myBuffer.isEmpty()) { return; } myListener.onTaskOutput(myTaskId, myBuffer.toString(), myStdOut); myBuffer.setLength(0); } | doFlush |
276,566 | void (@NotNull PresentationData presentation) { super.update(presentation); presentation.setIcon(ProgramRunnerUtil.getConfigurationIcon(mySettings, false)); final ExternalSystemRunConfiguration runConfiguration = (ExternalSystemRunConfiguration)mySettings.getConfiguration(); final ExternalSystemTaskExecutionSettings ta... | update |
276,567 | RunnerAndConfigurationSettings () { return mySettings; } | getSettings |
276,568 | String () { return mySettings.getName(); } | getName |
276,569 | boolean () { return true; } | isAlwaysLeaf |
276,570 | String () { return "ExternalSystemView.RunConfigurationMenu"; } | getMenuId |
276,571 | void () { } | updateRunConfiguration |
276,572 | void (SimpleTree tree, InputEvent inputEvent) { ExternalProjectsView projectsView = getExternalProjectsView(); String place = projectsView instanceof Component ? ((Component)projectsView).getName() : "unknown"; ExternalSystemActionsCollector.trigger(myProject, projectsView.getSystemId(), ExternalSystemActionsCollector.... | handleDoubleClickOrEnter |
276,573 | Navigatable () { return new Navigatable() { @Override public void navigate(boolean requestFocus) { RunManager.getInstance(myProject).setSelectedConfiguration(mySettings); EditConfigurationsDialog dialog = new EditConfigurationsDialog(myProject); dialog.show(); } @Override public boolean canNavigate() { return true; } @... | getNavigatable |
276,574 | void (boolean requestFocus) { RunManager.getInstance(myProject).setSelectedConfiguration(mySettings); EditConfigurationsDialog dialog = new EditConfigurationsDialog(myProject); dialog.show(); } | navigate |
276,575 | boolean () { return true; } | canNavigate |
276,576 | boolean () { return false; } | canNavigateToSource |
276,577 | void (@NotNull PresentationData presentation) { super.update(presentation); presentation.setIcon(getUiAware().getProjectIcon()); } | update |
276,578 | ExternalSystemNode () { return (ExternalSystemNode)getParent(); } | getGroup |
276,579 | void (@NotNull PresentationData presentation) { setNameAndTooltip(presentation, getName(), myTooltipCache); } | doUpdate |
276,580 | String () { ProjectData data = getData(); if (data == null) return null; return data.getIdeGrouping(); } | getIdeGrouping |
276,581 | void (@Nullable String ideGrouping) { ProjectData data = getData(); if (data != null) { data.setIdeGrouping(ideGrouping); } } | setIdeGrouping |
276,582 | String () { return "ExternalSystemView.ProjectMenu"; } | getMenuId |
276,583 | ModuleNode () { return effectiveRoot; } | getEffectiveRoot |
276,584 | void (@NotNull ExternalSystemViewContributor extension, @NotNull PluginDescriptor pluginDescriptor) { if (contributorPredicate.value(extension)) { myViewContributors.add(extension); } } | extensionAdded |
276,585 | void (@NotNull ExternalSystemViewContributor extension, @NotNull PluginDescriptor pluginDescriptor) { if (contributorPredicate.value(extension)) { myViewContributors.remove(extension); } } | extensionRemoved |
276,586 | Project () { return myProject; } | getProject |
276,587 | ExternalSystemUiAware () { return myUiAware; } | getUiAware |
276,588 | ExternalSystemShortcutsManager () { return myProjectsManager.getShortcutsManager(); } | getShortcutsManager |
276,589 | ExternalSystemTaskActivator () { return myProjectsManager.getTaskActivator(); } | getTaskActivator |
276,590 | ProjectSystemId () { return myExternalSystemId; } | getSystemId |
276,591 | NotificationGroup () { return myNotificationGroup; } | getNotificationGroup |
276,592 | void () { Disposer.register(myProject, this); initTree(); MessageBusConnection busConnection = myProject.getMessageBus().connect(this); busConnection.subscribe(ToolWindowManagerListener.TOPIC, new ToolWindowManagerListener() { boolean wasVisible; @Override public void stateChanged(@NotNull ToolWindowManager toolWindowM... | init |
276,593 | void (@NotNull ToolWindowManager toolWindowManager) { if (myToolWindow.isDisposed()) { return; } boolean visible = ((ToolWindowManagerEx)toolWindowManager).shouldUpdateToolWindowContent(myToolWindow); if (!visible || wasVisible) { wasVisible = visible; if (!visible) { scheduleStructureCleanupCache(); } return; } schedu... | stateChanged |
276,594 | void () { scheduleStructureRequest(() -> { assert myStructure != null; myStructure.visitExistingNodes(ModuleNode.class, node -> node.updateRunConfigurations()); }); } | changed |
276,595 | void (@NotNull RunnerAndConfigurationSettings settings) { changed(); } | runConfigurationAdded |
276,596 | void (@NotNull RunnerAndConfigurationSettings settings) { changed(); } | runConfigurationRemoved |
276,597 | void (@NotNull RunnerAndConfigurationSettings settings) { changed(); } | runConfigurationChanged |
276,598 | void () { scheduleStructureRequest(() -> { assert myStructure != null; myStructure.updateNodesAsync(Arrays.asList(TaskNode.class, RunConfigurationNode.class)); }); } | scheduleTaskAndRunConfigUpdate |
276,599 | void (@NotNull ExternalSystemNode node, @Nullable String actionId, InputEvent inputEvent) { if (actionId != null) { ExternalSystemActionUtil.executeAction(actionId, getName(), inputEvent); } for (Listener listener : listeners) { listener.onDoubleClickOrEnter(node, inputEvent); } } | handleDoubleClickOrEnter |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.