Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
258,000 | void (@NotNull AnActionEvent e) { if (DiffUtil.isFromShortcut(e)) { e.getPresentation().setEnabledAndVisible(true); return; } if (!isNavigationEnabled()) { e.getPresentation().setEnabledAndVisible(false); return; } e.getPresentation().setVisible(true); e.getPresentation().setEnabled(hasNextChange(true)); } | update |
258,001 | void (@NotNull AnActionEvent e) { if (!isNavigationEnabled() || !hasNextChange(false)) return; goToNextChange(false); } | actionPerformed |
258,002 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
258,003 | void (@NotNull AnActionEvent e) { if (DiffUtil.isFromShortcut(e)) { e.getPresentation().setEnabledAndVisible(true); return; } if (!isNavigationEnabled()) { e.getPresentation().setEnabledAndVisible(false); return; } e.getPresentation().setVisible(true); e.getPresentation().setEnabled(hasPrevChange(true)); } | update |
258,004 | void (@NotNull AnActionEvent e) { if (!isNavigationEnabled() || !hasPrevChange(false)) return; goToPrevChange(false); } | actionPerformed |
258,005 | DiffRequestProcessor () { return DiffRequestProcessor.this; } | getProcessor |
258,006 | Dimension () { Dimension windowSize = DiffUtil.getDefaultDiffPanelSize(); Dimension size = super.getPreferredSize(); return new Dimension(Math.max(windowSize.width, size.width), Math.max(windowSize.height, size.height)); } | getPreferredSize |
258,007 | void () { myProgressCount++; setVisible(true); } | startProgress |
258,008 | void () { myProgressCount--; LOG.assertTrue(myProgressCount >= 0); if (myProgressCount == 0) setVisible(false); } | stopProgress |
258,009 | Component (final Container focusCycleRoot) { JComponent component = DiffRequestProcessor.this.getPreferredFocusedComponent(); return IdeFocusTraversalPolicy.getPreferredFocusedComponent(component, this); } | getDefaultComponent |
258,010 | void () { updateRequest(true); } | reopenDiffRequest |
258,011 | void () { reloadRequest(); } | reloadDiffRequest |
258,012 | void (boolean enabled) { if (enabled) { myProgressBar.startProgress(); } else { myProgressBar.stopProgress(); } } | showProgressBar |
258,013 | void (@NotNull String title) { setTitle(title); } | setWindowTitle |
258,014 | boolean () { return DiffRequestProcessor.this.isFocusedInWindow(); } | isFocusedInWindow |
258,015 | boolean () { return DiffRequestProcessor.this.isWindowFocused(); } | isWindowFocused |
258,016 | void () { DiffRequestProcessor.this.requestFocusInWindow(); } | requestFocusInWindow |
258,017 | void (@NotNull DiffRequest request, boolean isAssigned) { try { request.onAssigned(isAssigned); } catch (Exception e) { LOG.error(e); } } | onAssigned |
258,018 | void () { } | init |
258,019 | void () { } | destroy |
258,020 | DiffTool () { return ErrorDiffTool.INSTANCE; } | getActiveTool |
258,021 | void () { myContentPanel.setContent(myViewer.getComponent()); FrameDiffTool.ToolbarComponents init = myViewer.init(); buildToolbar(init.toolbarActions); } | init |
258,022 | void () { try { Disposer.dispose(myViewer); } catch (Throwable e) { LOG.error(e); } } | destroy |
258,023 | DiffTool () { return myDiffTool != null ? myDiffTool : ErrorDiffTool.INSTANCE; } | getActiveTool |
258,024 | void () { myContentPanel.setContent(myViewer.getComponent()); setTitle(myActiveRequest.getTitle()); FrameDiffTool.ToolbarComponents toolbarComponents = myViewer.init(); FrameDiffTool.DiffInfo diffInfo = toolbarComponents.diffInfo; if (diffInfo != null) { myDiffInfoWrapper.setContent(diffInfo.getComponent()); } else { m... | init |
258,025 | void () { try { Disposer.dispose(myViewer); } catch (Throwable e) { LOG.error(e); } } | destroy |
258,026 | DiffTool () { return myTool; } | getActiveTool |
258,027 | void () { myContentPanel.setContent(myWrapperViewer.getComponent()); setTitle(myActiveRequest.getTitle()); FrameDiffTool.ToolbarComponents toolbarComponents1 = myViewer.init(); FrameDiffTool.ToolbarComponents toolbarComponents2 = myWrapperViewer.init(); buildToolbar(mergeActions(toolbarComponents1.toolbarActions, toolb... | init |
258,028 | void () { try { Disposer.dispose(myViewer); Disposer.dispose(myWrapperViewer); } catch (Throwable e) { LOG.error(e); } } | destroy |
258,029 | DiffTool () { return myTool; } | getActiveTool |
258,030 | Icon (@NotNull String path, int cacheKey, int flags) { return IconManager.getInstance().loadRasterizedIcon(path, PlatformDiffImplIcons.class.getClassLoader(), cacheKey, flags); } | load |
258,031 | BuildContentManager (@NotNull Project project) { return project.getService(BuildContentManager.class); } | getInstance |
258,032 | VirtualFile () { E psiElement = getPsiElement(); if (psiElement.isValid()) { if (psiElement instanceof PsiFileSystemItem) { return ((PsiFileSystemItem)psiElement).getVirtualFile(); } PsiFile psiFile = psiElement.getContainingFile(); if (psiFile != null) { VirtualFile virtualFile = psiFile.getVirtualFile(); if (virtualF... | getVirtualFile |
258,033 | Navigatable () { return getOpenFileDescriptor(); } | getNavigatable |
258,034 | OpenFileDescriptor () { VirtualFile file = getVirtualFile(); return file != null ? new OpenFileDescriptor(getProject(), file, getPsiElement().getTextOffset()) : null; } | getOpenFileDescriptor |
258,035 | PsiLocation<E> () { return new PsiLocation<>(getProject(), getPsiElement()); } | toPsiLocation |
258,036 | Key<T> () { return myProviderId; } | getProviderId |
258,037 | boolean () { return myIsEnabled; } | isEnabled |
258,038 | void (boolean isEnabled) { myIsEnabled = isEnabled; } | setEnabled |
258,039 | void (@NotNull Element element) { if (this instanceof PersistentStateComponent) { ((PersistentStateComponent<?>)this).getState(); } else { element.setAttribute("enabled", String.valueOf(myIsEnabled)); } } | writeExternal |
258,040 | void (@NotNull Element element) { String attribValue = element.getAttributeValue("enabled"); if (attribValue == null) { attribValue = element.getAttributeValue("value"); // maintain compatibility with old format } myIsEnabled = attribValue == null || Boolean.parseBoolean(attribValue); } | readExternal |
258,041 | int () { return 1; } | getItemsCount |
258,042 | BeforeRunTask () { try { return (BeforeRunTask)super.clone(); } catch (CloneNotSupportedException ignored) { return null; } } | clone |
258,043 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; BeforeRunTask<?> that = (BeforeRunTask<?>)o; if (myProviderId != that.myProviderId) return false; if (myIsEnabled != that.myIsEnabled) return false; return true; } | equals |
258,044 | int () { return 31 * myProviderId.hashCode() + (myIsEnabled ? 1 : 0); } | hashCode |
258,045 | ExecutorRegistry () { return ApplicationManager.getApplication().getService(ExecutorRegistry.class); } | getInstance |
258,046 | boolean (@NotNull Project project, @NotNull String executorId, @NotNull String runnerId) { return ExecutionManager.getInstance(project).isStarting(executorId, runnerId); } | isStarting |
258,047 | boolean (@NotNull ExecutionEnvironment environment) { return ExecutionManager.getInstance(environment.getProject()).isStarting(environment); } | isStarting |
258,048 | Icon () { return getIcon(); } | getRerunIcon |
258,049 | boolean (@NotNull Project project) { return true; } | isApplicable |
258,050 | boolean () { return false; } | isSupportedOnTarget |
258,051 | String (@NotNull String name) { return StringUtil.trimMiddle(name, Registry.intValue("run.configuration.max.name.length", 80)); } | shortenNameIfNeeded |
258,052 | String () { return null; } | getGroupName |
258,053 | boolean (@NotNull RunConfiguration configuration) { throw new AbstractMethodError(); } | canRun |
258,054 | boolean () { return true; } | isReady |
258,055 | boolean () { return false; } | isExternallyManaged |
258,056 | boolean (Object obj) { return obj == this || (getClass().isInstance(obj) && getId().equals(((ExecutionTarget)obj).getId())); } | equals |
258,057 | int () { return getId().hashCode(); } | hashCode |
258,058 | String () { return getId(); } | toString |
258,059 | boolean () { return false; } | isConfigurable |
258,060 | boolean (@NotNull RunConfiguration runConfiguration, @NotNull T task) { return false; } | configureTask |
258,061 | Promise<Boolean> (@NotNull DataContext context, @NotNull RunConfiguration configuration, @NotNull T task) { return Promises.resolvedPromise(configureTask(configuration, task)); } | configureTask |
258,062 | boolean (@NotNull RunConfiguration configuration, @NotNull T task) { return true; } | canExecuteTask |
258,063 | boolean () { // by default false because user can configure chain (java compile, generate something, java compile again) return false; } | isSingleton |
258,064 | CantRunException (@Nullable String moduleName) { return StringUtil.isEmptyOrSpaces(moduleName) ? new CantRunException(ExecutionBundle.message("no.module.defined.error.message")) : new CantRunException(ExecutionBundle.message("module.does.not.exist.error.message", moduleName)); } | noModuleConfigured |
258,065 | CantRunException (@NotNull Module module) { return new CantRunException(ExecutionBundle.message("no.jdk.for.module.error.message", module.getName())); } | noJdkForModule |
258,066 | CantRunException (@NotNull Sdk jdk) { return new CantRunException(ExecutionBundle.message("jdk.is.bad.configured.error.message", jdk.getName())); } | jdkMisconfigured |
258,067 | CantRunException (@NotNull String className, @NotNull Module module) { return new CantRunException(ExecutionBundle.message("class.not.found.in.module.error.message", className, module.getName())); } | classNotFound |
258,068 | CantRunException (@NotNull String packageName) { return new CantRunException(ExecutionBundle.message("package.not.found.error.message", packageName)); } | packageNotFound |
258,069 | CantRunException () { return new CantRunException(ExecutionBundle.message("some.modules.has.circular.dependency.error.message")); } | badModuleDependencies |
258,070 | CantRunException () { return new CantRunException(ExecutionBundle.message("project.has.no.jdk.configured.error.message")); } | noJdkConfigured |
258,071 | E () { return myPsiElement; } | getPsiElement |
258,072 | Project () { return myProject; } | getProject |
258,073 | Module () { return myModule; } | getModule |
258,074 | boolean () { return myCurrent != null; } | hasNext |
258,075 | Location<T> () { if (myCurrent == null) throw new NoSuchElementException(); final PsiLocation<T> psiLocation = new PsiLocation<>(myProject, myCurrent); myCurrent = findNext(myCurrent, ancestorClass); return psiLocation; } | next |
258,076 | void () { LOG.assertTrue(false); } | remove |
258,077 | PsiLocation<E> () { return this; } | toPsiLocation |
258,078 | ExecutionConsole () { return myConsole; } | getExecutionConsole |
258,079 | void (AnAction @NotNull ... actions) { myActions = actions; } | setActions |
258,080 | void (AnAction @NotNull ... restartActions) { myRestartActions = restartActions; } | setRestartActions |
258,081 | ProcessHandler () { return myProcessHandler; } | getProcessHandler |
258,082 | String () { return "default_target"; } | getId |
258,083 | String () { return IdeCoreBundle.message("node.default"); } | getDisplayName |
258,084 | Icon () { return null; } | getIcon |
258,085 | boolean (@NotNull RunConfiguration configuration) { return true; } | canRun |
258,086 | ExecutionTargetManager (@NotNull Project project) { return project.getService(ExecutionTargetManager.class); } | getInstance |
258,087 | ExecutionTarget (@NotNull Project project) { return getInstance(project).getActiveTarget(); } | getActiveTarget |
258,088 | void (@NotNull Project project, @NotNull ExecutionTarget target) { getInstance(project).setActiveTarget(target); } | setActiveTarget |
258,089 | List<ExecutionTarget> (@NotNull Project project, @Nullable RunConfiguration configuration) { List<ExecutionTarget> result = getInstance(project).getTargetsFor(configuration); if (result.size() == 1 && DefaultExecutionTarget.INSTANCE.equals(result.get(0))) { return Collections.emptyList(); } result = ContainerUtil.filte... | getTargetsToChooseFor |
258,090 | boolean (@Nullable RunnerAndConfigurationSettings settings, @Nullable ExecutionTarget target) { return canRun(settings != null ? settings.getConfiguration() : null, target); } | canRun |
258,091 | boolean (@Nullable RunConfiguration configuration, @Nullable ExecutionTarget target) { if (configuration == null || target == null) { return false; } else { return getInstance(configuration.getProject()).doCanRun(configuration, target); } } | canRun |
258,092 | boolean (@NotNull ExecutionEnvironment environment) { RunnerAndConfigurationSettings settings = environment.getRunnerAndConfigurationSettings(); return settings != null && canRun(settings.getConfiguration(), environment.getExecutionTarget()); } | canRun |
258,093 | void (@NotNull Project project) { getInstance(project).update(); } | update |
258,094 | ExecutionTarget (RunConfiguration configuration) { ExecutionTarget target = getActiveTarget(); if (canRun(configuration, target)) { return target; } List<ExecutionTarget> targets = getTargetsFor(configuration); return ContainerUtil.getFirstItem(targets); } | findTarget |
258,095 | String () { return ExecutionBundle.message("default.runner.start.action.text"); } | getStartActionText |
258,096 | String (@NotNull String configurationName) { if (configurationName.isEmpty()) return getStartActionText(); return TextWithMnemonic.parse(ExecutionBundle.message("default.runner.start.action.text.2")) .replaceFirst("%s", shortenNameIfNeeded(configurationName)).toString(); } | getStartActionText |
258,097 | String () { return ToolWindowId.RUN; } | getToolWindowId |
258,098 | Icon () { return AllIcons.Toolwindows.ToolWindowRun; } | getToolWindowIcon |
258,099 | Icon () { return AllIcons.Actions.Execute; } | getIcon |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.