Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
258,400
ExecutionUiService () { return ApplicationManager.getApplication().getService(ExecutionUiService.class); }
getInstance
258,401
boolean (@NotNull RunContentDescriptor newDescriptor) { return true; }
canBeReusedBy
258,402
ExecutionConsole () { return myExecutionConsole; }
getExecutionConsole
258,403
void () { myExecutionConsole = null; myComponent = null; myProcessHandler = null; myContent = null; }
dispose
258,404
Icon () { return myIcon; }
getIcon
258,405
ProcessHandler () { return myProcessHandler; }
getProcessHandler
258,406
void (ProcessHandler processHandler) { myProcessHandler = processHandler; }
setProcessHandler
258,407
boolean () { return false; }
isContentReuseProhibited
258,408
JComponent () { return myComponent; }
getComponent
258,409
String () { return myDisplayName; }
getDisplayName
258,410
String () { return myHelpId; }
getHelpId
258,411
Content () { return myContent; }
getAttachedContent
258,412
void (@NotNull Content content) { myContent = content; }
setAttachedContent
258,413
String () { return myContentToolWindowId; }
getContentToolWindowId
258,414
void (@Nullable String contentToolWindowId) { myContentToolWindowId = contentToolWindowId; }
setContentToolWindowId
258,415
boolean () { return myActivateToolWindowWhenAdded; }
isActivateToolWindowWhenAdded
258,416
void (boolean activateToolWindowWhenAdded) { myActivateToolWindowWhenAdded = activateToolWindowWhenAdded; }
setActivateToolWindowWhenAdded
258,417
boolean () { return mySelectContentWhenAdded; }
isSelectContentWhenAdded
258,418
void (boolean selectContentWhenAdded) { mySelectContentWhenAdded = selectContentWhenAdded; }
setSelectContentWhenAdded
258,419
boolean () { return myReuseToolWindowActivation; }
isReuseToolWindowActivation
258,420
void (boolean reuseToolWindowActivation) { myReuseToolWindowActivation = reuseToolWindowActivation; }
setReuseToolWindowActivation
258,421
long () { return myExecutionId; }
getExecutionId
258,422
void (long executionId) { myExecutionId = executionId; }
setExecutionId
258,423
String () { return getClass().getSimpleName() + "#" + hashCode() + "(" + getDisplayName() + ", " + getProcessHandler() + ")"; }
toString
258,424
Computable<JComponent> () { return myFocusComputable; }
getPreferredFocusComputable
258,425
void (Computable<JComponent> focusComputable) { myFocusComputable = focusComputable; }
setFocusComputable
258,426
boolean () { return myAutoFocusContent; }
isAutoFocusContent
258,427
void (boolean autoFocusContent) { myAutoFocusContent = autoFocusContent; }
setAutoFocusContent
258,428
RunnerLayoutUi () { return myRunnerLayoutUi; }
getRunnerLayoutUi
258,429
void (@Nullable RunnerLayoutUi runnerLayoutUi) { myRunnerLayoutUi = runnerLayoutUi; }
setRunnerLayoutUi
258,430
boolean () { return false; }
isHiddenContent
258,431
RunContentDescriptorReusePolicy () { return myReusePolicy; }
getReusePolicy
258,432
void (@NotNull RunContentDescriptorReusePolicy reusePolicy) { myReusePolicy = reusePolicy; }
setReusePolicy
258,433
void (final Content content, final RunnerLayoutUi ui) { ui.setBouncing(content, true); }
attract
258,434
void (final Content content, final RunnerLayoutUi ui) { ui.setBouncing(content, false); }
clearAttraction
258,435
void (final Content content, final RunnerLayoutUi ui) { if (!myWasAttracted) { myWasAttracted = true; ui.selectAndFocus(content, myRequestFocus, true, true); } else { ui.setBouncing(content, true); } }
attract
258,436
void (final Content content, final RunnerLayoutUi ui) { ui.setBouncing(content, false); }
clearAttraction
258,437
void (final Content content, final RunnerLayoutUi ui) { ui.selectAndFocus(content, true, true); }
attract
258,438
void (final Content content, final RunnerLayoutUi ui) { }
clearAttraction
258,439
RunDashboardManager (@NotNull Project project) { return project.getService(RunDashboardManager.class); }
getInstance
258,440
Sdk (@NotNull Project project) { return chooseJdk(project, Arrays.asList(ModuleManager.getInstance(project).getModules())); }
getAnyJdk
258,441
Sdk (@NotNull Project project, @NotNull Collection<? extends Module> modules) { Sdk projectJdk = ProjectRootManager.getInstance(project).getProjectSdk(); if (projectJdk != null && projectJdk.getSdkType() instanceof JavaSdkType) { return projectJdk; } return chooseJdk(modules); }
chooseJdk
258,442
Sdk (@NotNull Collection<? extends Module> modules) { List<Sdk> jdks = ContainerUtil.mapNotNull(modules, module -> { if (module == null) return null; Sdk sdk = ModuleRootManager.getInstance(module).getSdk(); if (sdk == null || !(sdk.getSdkType() instanceof JavaSdkType)) return null; return sdk; }); if (jdks.isEmpty()) ...
chooseJdk
258,443
GlobalSearchScope (@NotNull Project project, @Nullable RunProfile runProfile) { return new DelegatingGlobalSearchScope(project) { private final NotNullLazyValue<GlobalSearchScope> myLazyValue = NotNullLazyValue.lazy(() -> { if (runProfile instanceof SearchScopeProvidingRunProfile) { GlobalSearchScope scope = ((SearchSc...
executionScope
258,444
GlobalSearchScope () { return myLazyValue.get(); }
getDelegate
258,445
JComponent () { return this; }
getComponent
258,446
String () { return myText; }
getText
258,447
Key () { return myOutputType; }
getOutputType
258,448
String () { return myName; }
toString
258,449
void (final Icon icon) { myIcon = icon; }
setIcon
258,450
boolean (String line) { return true; }
isAcceptable
258,451
String () { return myName; }
getName
258,452
Icon () { if (myIcon != null) { return myIcon; } if (myIconPath != null && new File(FileUtil.toSystemDependentName(myIconPath)).exists()) { Image image = null; try { image = ImageLoader.loadFromStream(VfsUtilCore.convertToURL(VfsUtil.pathToUrl(myIconPath)).openStream()); } catch (IOException e) { LOG.debug(e); } if (im...
getIcon
258,453
Pattern () { return myPattern; }
getPattern
258,454
String () { return myType; }
getType
258,455
LevelPattern (@NotNull String text) { return findBestMatchingPattern(text, LevelPattern.values()); }
findBestMatchingPattern
258,456
LevelPattern (@NotNull String text, LevelPattern @NotNull [] patterns) { int bestStart = Integer.MAX_VALUE; LevelPattern bestMatch = null; for (LevelPattern next : patterns) { Matcher nextMatcher = next.getPattern().matcher(text); if (nextMatcher.find()) { int nextStart = nextMatcher.start(); if (nextStart < bestStart)...
findBestMatchingPattern
258,457
LogConsolePreferences (Project project) { return project.getService(LogConsolePreferences.class); }
getInstance
258,458
void (String customFilter) { CUSTOM_FILTER = customFilter; fireStateChanged(); }
updateCustomFilter
258,459
boolean (@NotNull String text, String prevType, boolean checkStandardFilters) { for (LogFilter filter : myRegisteredLogFilters.keySet()) { if (myRegisteredLogFilters.get(filter).booleanValue() && !filter.isAcceptable(text)) return false; } if (checkStandardFilters) { final String type = getType(text); boolean selfTyped...
isApplicable
258,460
boolean (final String type) { if (type.equals(ERROR)) { return !FILTER_ERRORS; } if (type.equals(WARNING)) { return !FILTER_WARNINGS; } if (type.equals(INFO)) { return !FILTER_INFO; } if (type.equals(DEBUG)) { return !FILTER_DEBUG; } return true; }
isApplicable
258,461
ConsoleViewContentType (String type) { if (type.equals(ERROR)) return ConsoleViewContentType.ERROR_OUTPUT; return ConsoleViewContentType.NORMAL_OUTPUT; }
getContentType
258,462
String (@NotNull String text) { LevelPattern bestMatch = LevelPattern.findBestMatchingPattern(text); return bestMatch == null ? null : bestMatch.getType(); }
getType
258,463
Key (String type) { if (type.equals(ERROR)) return ProcessOutputTypes.STDERR; if (type.equals(WARNING) || type.equals(INFO) || type.equals(DEBUG)) return ProcessOutputTypes.STDOUT; return null; }
getProcessOutputTypes
258,464
Element () { @NonNls Element element = new Element("LogFilters"); try { for (LogFilter filter : myRegisteredLogFilters.keySet()) { Element filterElement = new Element(FILTER); filterElement.setAttribute(IS_ACTIVE, myRegisteredLogFilters.get(filter).toString()); filter.writeExternal(filterElement); element.addContent(fi...
getState
258,465
void (@NotNull final Element object) { try { final List children = object.getChildren(FILTER); for (Object child : children) { Element filterElement = (Element)child; final LogFilter filter = new LogFilter(); filter.readExternal(filterElement); setFilterSelected(filter, Boolean.parseBoolean(filterElement.getAttributeVa...
loadState
258,466
void (LogFilter filter) { myRegisteredLogFilters.put(filter, Boolean.FALSE); }
registerFilter
258,467
List<LogFilter> () { return new ArrayList<>(myRegisteredLogFilters.keySet()); }
getRegisteredLogFilters
258,468
boolean (LogFilter filter) { final Boolean isSelected = myRegisteredLogFilters.get(filter); if (isSelected != null) { return isSelected.booleanValue(); } if (filter instanceof IndependentLogFilter) { return ((IndependentLogFilter)filter).isSelected(); } return false; }
isFilterSelected
258,469
void (@NotNull LogFilter filter, boolean state) { if (filter instanceof IndependentLogFilter) { ((IndependentLogFilter)filter).selectFilter(); } else if (myRegisteredLogFilters.containsKey(filter)) { myRegisteredLogFilters.put(filter, state); } fireStateChanged(filter); }
setFilterSelected
258,470
void (LogFilter filter) { for (LogFilter logFilter : myRegisteredLogFilters.keySet()) { myRegisteredLogFilters.put(logFilter, false); } if (filter != null) { setFilterSelected(filter, true); } }
selectOnlyFilter
258,471
void (@NotNull LogFilter filter) { for (LogFilterListener listener : myListeners) { listener.onFilterStateChange(filter); } }
fireStateChanged
258,472
void () { for (LogFilterListener listener : myListeners) { listener.onTextFilterChange(); } }
fireStateChanged
258,473
void (LogFilterListener l) { myListeners.add(l); }
addFilterListener
258,474
void (LogFilterListener l) { myListeners.remove(l); }
removeFilterListener
258,475
void (String filter) { myCustomPattern = null; }
updateCustomFilter
258,476
Pattern () { String customFilter = getCustomFilter(); if (myCustomPattern == null && customFilter != null) { final StringBuilder buf = new StringBuilder(customFilter.length()); for (int i = 0; i < customFilter.length(); i++) { final char c = customFilter.charAt(i); if (Character.isLetterOrDigit(c)) { buf.append(Charact...
getCustomPattern
258,477
boolean (String line) { if (getCustomFilter() != null) { final Pattern pattern = getCustomPattern(); if (pattern != null && !pattern.matcher(StringUtil.toUpperCase(line)).matches()) return false; } return true; }
isApplicable
258,478
void () { }
processingStarted
258,479
Key () { return myKey; }
getKey
258,480
boolean () { return myApplicable; }
isApplicable
258,481
String () { return myMessagePrefix; }
getMessagePrefix
258,482
JComponent () { DrawLabelMode drawLabelMode = shouldDrawLabel(); switch (drawLabelMode) { case ALWAYS -> myNameLabel = new DynamicLabel(() -> myDisplayName.get() + (isValueSelected() ? ": " : "")); case NEVER -> myNameLabel = null; case WHEN_VALUE_NOT_SET -> myNameLabel = new DynamicLabel(() -> isValueSelected() ? "" :...
initUi
258,483
void () { boolean selected = isValueSelected(); myFilterActionButton.setIcon(selected ? AllIcons.Actions.Close : AllIcons.General.ArrowDown); myFilterActionButton.setHoveredIcon(selected ? AllIcons.Actions.CloseHovered : AllIcons.General.ArrowDown); myFilterActionButton.setFocusable(selected); }
updateFilterButton
258,484
boolean () { return true; }
shouldIndicateHovering
258,485
DrawLabelMode () { return DrawLabelMode.ALWAYS; }
shouldDrawLabel
258,486
void () { addFocusListener(new FocusAdapter() { @Override public void focusGained(@NotNull FocusEvent e) { setBorder(wrapBorder(createFocusedBorder())); } @Override public void focusLost(@NotNull FocusEvent e) { setBorder(wrapBorder(createUnfocusedBorder())); } }); }
indicateFocusing
258,487
void (@NotNull FocusEvent e) { setBorder(wrapBorder(createFocusedBorder())); }
focusGained
258,488
void (@NotNull FocusEvent e) { setBorder(wrapBorder(createUnfocusedBorder())); }
focusLost
258,489
void () { addKeyListener(new KeyAdapter() { @Override public void keyPressed(@NotNull KeyEvent e) { if (e.getKeyCode() == KeyEvent.VK_ENTER || e.getKeyCode() == KeyEvent.VK_DOWN) { showPopup(); } } }); }
showPopupMenuFromKeyboard
258,490
void (@NotNull KeyEvent e) { if (e.getKeyCode() == KeyEvent.VK_ENTER || e.getKeyCode() == KeyEvent.VK_DOWN) { showPopup(); } }
keyPressed
258,491
void () { ClickListener clickListener = new ClickListener() { @Override public boolean onClick(@NotNull MouseEvent event, int clickCount) { if (UIUtil.isCloseClick(event, MouseEvent.MOUSE_RELEASED)) { resetFilter(); } else { showPopup(); } return true; } }; clickListener.installOn(this); clickListener.installOn(myValue...
showPopupMenuOnClick
258,492
boolean (@NotNull MouseEvent event, int clickCount) { if (UIUtil.isCloseClick(event, MouseEvent.MOUSE_RELEASED)) { resetFilter(); } else { showPopup(); } return true; }
onClick
258,493
void (@NotNull JComponent component) { component.addMouseListener(new MouseAdapter() { @Override public void mouseEntered(@NotNull MouseEvent e) { setOnHoverForeground(); } @Override public void mouseExited(@NotNull MouseEvent e) { setDefaultForeground(); } }); }
indicateHovering
258,494
void (@NotNull MouseEvent e) { setOnHoverForeground(); }
mouseEntered
258,495
void (@NotNull MouseEvent e) { setDefaultForeground(); }
mouseExited
258,496
void () { if (myNameLabel != null) { myNameLabel.setForeground(UIUtil.getLabelInfoForeground()); } myValueLabel.setForeground(UIUtil.getLabelForeground()); }
setDefaultForeground
258,497
void () { if (myNameLabel != null) { myNameLabel.setForeground(StartupUiUtil.isUnderDarcula() ? UIUtil.getLabelForeground() : UIUtil.getTextAreaForeground()); } myValueLabel.setForeground(StartupUiUtil.isUnderDarcula() ? UIUtil.getLabelForeground() : UIUtil.getTextFieldForeground()); }
setOnHoverForeground
258,498
void () { Runnable resetAction = createResetAction(); if (resetAction != null) { resetAction.run(); } }
resetFilter
258,499
void () { if (myShowPopupAction != null) { myShowPopupAction.run(); } }
showPopup