Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
291,300 | void (String filter) { super.updateCustomFilter(filter); getPreferences().updateCustomFilter(filter); } | updateCustomFilter |
291,301 | String () { return getPreferences().CUSTOM_FILTER; } | getCustomFilter |
291,302 | void (LogFilterListener listener) { getPreferences().addFilterListener(listener); } | addFilterListener |
291,303 | boolean (String line) { if (!super.isApplicable(line)) return false; return getPreferences().isApplicable(line, myPrevType, myCheckStandardFilters); } | isApplicable |
291,304 | void (LogFilterListener listener) { getPreferences().removeFilterListener(listener); } | removeFilterListener |
291,305 | List<LogFilter> () { LogConsolePreferences preferences = getPreferences(); final ArrayList<LogFilter> filters = new ArrayList<>(); if (myCheckStandardFilters) { addStandardFilters(filters, preferences); } filters.addAll(preferences.getRegisteredLogFilters()); return filters; } | getLogFilters |
291,306 | void (ArrayList<? super LogFilter> filters, final LogConsolePreferences preferences) { filters.add(new MyFilter(DiagnosticBundle.message("log.console.filter.show.all"), preferences) { @Override public void selectFilter() { preferences.FILTER_ERRORS = false; preferences.FILTER_INFO = false; preferences.FILTER_WARNINGS = false; preferences.FILTER_DEBUG = false; } @Override public boolean isSelected() { return !preferences.FILTER_ERRORS && !preferences.FILTER_INFO && !preferences.FILTER_WARNINGS && !preferences.FILTER_DEBUG; } }); filters.add(new MyFilter(DiagnosticBundle.message("log.console.filter.show.errors.warnings.and.infos"), preferences) { @Override public void selectFilter() { preferences.FILTER_ERRORS = false; preferences.FILTER_INFO = false; preferences.FILTER_WARNINGS = false; preferences.FILTER_DEBUG = true; } @Override public boolean isSelected() { return !preferences.FILTER_ERRORS && !preferences.FILTER_INFO && !preferences.FILTER_WARNINGS && preferences.FILTER_DEBUG; } }); filters.add(new MyFilter(DiagnosticBundle.message("log.console.filter.show.errors.and.warnings"), preferences) { @Override public void selectFilter() { preferences.FILTER_ERRORS = false; preferences.FILTER_INFO = true; preferences.FILTER_WARNINGS = false; preferences.FILTER_DEBUG = true; } @Override public boolean isSelected() { return !preferences.FILTER_ERRORS && preferences.FILTER_INFO && !preferences.FILTER_WARNINGS && preferences.FILTER_DEBUG; } }); filters.add(new MyFilter(DiagnosticBundle.message("log.console.filter.show.errors"), preferences) { @Override public void selectFilter() { preferences.FILTER_ERRORS = false; preferences.FILTER_INFO = true; preferences.FILTER_WARNINGS = true; preferences.FILTER_DEBUG = true; } @Override public boolean isSelected() { return !preferences.FILTER_ERRORS && preferences.FILTER_INFO && preferences.FILTER_WARNINGS && preferences.FILTER_DEBUG; } }); } | addStandardFilters |
291,307 | void () { preferences.FILTER_ERRORS = false; preferences.FILTER_INFO = false; preferences.FILTER_WARNINGS = false; preferences.FILTER_DEBUG = false; } | selectFilter |
291,308 | boolean () { return !preferences.FILTER_ERRORS && !preferences.FILTER_INFO && !preferences.FILTER_WARNINGS && !preferences.FILTER_DEBUG; } | isSelected |
291,309 | void () { preferences.FILTER_ERRORS = false; preferences.FILTER_INFO = false; preferences.FILTER_WARNINGS = false; preferences.FILTER_DEBUG = true; } | selectFilter |
291,310 | boolean () { return !preferences.FILTER_ERRORS && !preferences.FILTER_INFO && !preferences.FILTER_WARNINGS && preferences.FILTER_DEBUG; } | isSelected |
291,311 | void () { preferences.FILTER_ERRORS = false; preferences.FILTER_INFO = true; preferences.FILTER_WARNINGS = false; preferences.FILTER_DEBUG = true; } | selectFilter |
291,312 | boolean () { return !preferences.FILTER_ERRORS && preferences.FILTER_INFO && !preferences.FILTER_WARNINGS && preferences.FILTER_DEBUG; } | isSelected |
291,313 | void () { preferences.FILTER_ERRORS = false; preferences.FILTER_INFO = true; preferences.FILTER_WARNINGS = true; preferences.FILTER_DEBUG = true; } | selectFilter |
291,314 | boolean () { return !preferences.FILTER_ERRORS && preferences.FILTER_INFO && preferences.FILTER_WARNINGS && preferences.FILTER_DEBUG; } | isSelected |
291,315 | boolean (LogFilter filter) { return getPreferences().isFilterSelected(filter); } | isFilterSelected |
291,316 | void (LogFilter filter) { getPreferences().selectOnlyFilter(filter); } | selectFilter |
291,317 | MyProcessingResult (String line) { final String type = LogConsolePreferences.getType(line); Key contentType = type != null ? LogConsolePreferences.getProcessOutputTypes(type) : (LogConsolePreferences.ERROR.equals(myPrevType) ? ProcessOutputTypes.STDERR : ProcessOutputTypes.STDOUT); if (type != null) { myPrevType = type; } final boolean applicable = isApplicable(line); return new MyProcessingResult(contentType, applicable, null); } | processLine |
291,318 | boolean (String line) { return myPreferences.isApplicable(line, myPrevType, myCheckStandardFilters); } | isAcceptable |
291,319 | void (final JTableHeader tableHeader, final int preferredWidth, int columnIdx) { myFilesTable.getColumnModel().getColumn(columnIdx).setCellRenderer(new BooleanTableCellRenderer()); final TableColumn tableColumn = tableHeader.getColumnModel().getColumn(columnIdx); tableColumn.setWidth(preferredWidth); tableColumn.setPreferredWidth(preferredWidth); tableColumn.setMinWidth(preferredWidth); tableColumn.setMaxWidth(preferredWidth); } | setUpColumnWidth |
291,320 | void (@NotNull T configuration) { List<LogFileOptions> list = new ArrayList<>(); final List<LogFileOptions> logFiles = configuration.getLogFiles(); for (LogFileOptions setting : logFiles) { list.add( new LogFileOptions(setting.getName(), setting.getPathPattern(), setting.isEnabled(), setting.isSkipContent(), setting.isShowAll())); } myLog2Predefined.clear(); myUnresolvedPredefined.clear(); final List<PredefinedLogFile> predefinedLogFiles = configuration.getPredefinedLogFiles(); for (PredefinedLogFile predefinedLogFile : predefinedLogFiles) { PredefinedLogFile logFile = new PredefinedLogFile(); logFile.copyFrom(predefinedLogFile); final LogFileOptions options = configuration.getOptionsForPredefinedLogFile(logFile); if (options != null) { myLog2Predefined.put(options, logFile); list.add(options); } else { myUnresolvedPredefined.add(logFile); } } myModel.setItems(list); } | resetEditorFrom |
291,321 | void (@NotNull T configuration) { configuration.removeAllLogFiles(); configuration.removeAllPredefinedLogFiles(); if (!isSelected()) return; for (int i = 0; i < myModel.getRowCount(); i++) { LogFileOptions options = myModel.getItem(i); if (Objects.equals(options.getPathPattern(), "")) { continue; } final Boolean checked = (Boolean)myModel.getValueAt(i, 2); final Boolean skipped = (Boolean)myModel.getValueAt(i, 3); final PredefinedLogFile predefined = myLog2Predefined.get(options); if (predefined != null) { PredefinedLogFile file = new PredefinedLogFile(); file.setId(predefined.getId()); file.setEnabled(options.isEnabled()); configuration.addPredefinedLogFile(file); } else { configuration .addLogFile(options.getPathPattern(), options.getName(), checked.booleanValue(), skipped.booleanValue(), options.isShowAll()); } } for (PredefinedLogFile logFile : myUnresolvedPredefined) { configuration.addPredefinedLogFile(logFile); } } | applyEditorTo |
291,322 | String (final LogFileOptions object) { return object.getName(); } | valueOf |
291,323 | void (LogFileOptions options, String value) { options.setName(value); } | setValue |
291,324 | boolean (final LogFileOptions o) { return !myLog2Predefined.containsKey(o); } | isCellEditable |
291,325 | String (final LogFileOptions object) { return object.getPathPattern(); } | valueOf |
291,326 | void (LogFileOptions options, String value) { options.setPathPattern(value); } | setValue |
291,327 | boolean (final LogFileOptions o) { return !myLog2Predefined.containsKey(o); } | isCellEditable |
291,328 | Boolean (final LogFileOptions object) { return object.isEnabled(); } | valueOf |
291,329 | boolean (LogFileOptions element) { return true; } | isCellEditable |
291,330 | void (LogFileOptions element, Boolean checked) { final PredefinedLogFile predefinedLogFile = myLog2Predefined.get(element); if (predefinedLogFile != null) { predefinedLogFile.setEnabled(checked.booleanValue()); } element.setEnabled(checked.booleanValue()); } | setValue |
291,331 | Boolean (final LogFileOptions element) { return element.isSkipContent(); } | valueOf |
291,332 | boolean (LogFileOptions element) { return !myLog2Predefined.containsKey(element); } | isCellEditable |
291,333 | void (LogFileOptions element, Boolean skipped) { element.setSkipContent(skipped.booleanValue()); } | setValue |
291,334 | boolean (@NotNull LogFileOptions options) { EditLogPatternDialog dialog = new EditLogPatternDialog(); dialog.init(options.getName(), options.getPathPattern(), options.isShowAll()); if (dialog.showAndGet()) { options.setName(dialog.getName()); options.setPathPattern(dialog.getLogPattern()); options.setShowAll(dialog.isShowAllFiles()); return true; } return false; } | showEditorDialog |
291,335 | String () { return myPath; } | getPath |
291,336 | String () { return DiagnosticBundle.message("log.monitor.fragment.settings"); } | getChildrenGroupName |
291,337 | List<Filter> () { if (myProject.isDefault()) { return Collections.emptyList(); } return ReadAction.compute(() -> { if (myProject.isDisposed()) { return Collections.emptyList(); } return ConsoleViewUtil.computeConsoleFilters(myProject, myConsole, GlobalSearchScope.allScope(myProject)); }); } | createCompositeFilters |
291,338 | TerminalUiSettingsManager () { return myUiSettingsManager; } | getUiSettingsManager |
291,339 | EditorColorsScheme () { return myUiSettingsManager.getEditorColorsScheme(); } | getColorsScheme |
291,340 | TerminalActionPresentation () { return new TerminalActionPresentation(IdeBundle.message("terminal.action.OpenAsUrl.text"), Collections.emptyList()); } | getOpenUrlActionPresentation |
291,341 | TerminalActionPresentation () { List<KeyStroke> strokes = getKeyStrokesByActionId("Terminal.CopySelectedText"); if (strokes.isEmpty()) { strokes = getKeyStrokesByActionId(IdeActions.ACTION_COPY); } return new TerminalActionPresentation(UIUtil.removeMnemonic(ActionsBundle.message("action.$Copy.text")), strokes); } | getCopyActionPresentation |
291,342 | TerminalActionPresentation () { List<KeyStroke> strokes = getKeyStrokesByActionId("Terminal.Paste"); if (strokes.isEmpty()) { strokes = getKeyStrokesByActionId(IdeActions.ACTION_PASTE); } return new TerminalActionPresentation(UIUtil.removeMnemonic(ActionsBundle.message("action.$Paste.text")), strokes); } | getPasteActionPresentation |
291,343 | TerminalActionPresentation () { return getSelectAllActionPresentation(true); } | getSelectAllActionPresentation |
291,344 | TerminalActionPresentation (boolean useCommonShortcuts) { List<KeyStroke> strokes = getKeyStrokesByActionId(useCommonShortcuts ? "$SelectAll" : "Terminal.SelectAll"); return new TerminalActionPresentation(UIUtil.removeMnemonic(ActionsBundle.message("action.$SelectAll.text")), strokes); } | getSelectAllActionPresentation |
291,345 | TerminalActionPresentation () { List<KeyStroke> strokes = getKeyStrokesByActionId("Terminal.ClearBuffer"); return new TerminalActionPresentation(IdeBundle.message("terminal.action.ClearBuffer.text"), strokes); } | getClearBufferActionPresentation |
291,346 | TerminalActionPresentation () { TerminalActionPresentation presentation = super.getPageUpActionPresentation(); return new TerminalActionPresentation(IdeBundle.message("terminal.action.PageUp.text"), presentation.getKeyStrokes()); } | getPageUpActionPresentation |
291,347 | TerminalActionPresentation () { TerminalActionPresentation presentation = super.getPageDownActionPresentation(); return new TerminalActionPresentation(IdeBundle.message("terminal.action.PageDown.text"), presentation.getKeyStrokes()); } | getPageDownActionPresentation |
291,348 | TerminalActionPresentation () { TerminalActionPresentation presentation = super.getLineUpActionPresentation(); return new TerminalActionPresentation(IdeBundle.message("terminal.action.LineUp.text"), presentation.getKeyStrokes()); } | getLineUpActionPresentation |
291,349 | TerminalActionPresentation () { TerminalActionPresentation presentation = super.getLineDownActionPresentation(); return new TerminalActionPresentation(IdeBundle.message("terminal.action.LineDown.text"), presentation.getKeyStrokes()); } | getLineDownActionPresentation |
291,350 | TerminalActionPresentation () { return new TerminalActionPresentation(IdeBundle.message("terminal.action.Find.text"), getKeyStrokesByActionId("Terminal.Find", IdeActions.ACTION_FIND)); } | getFindActionPresentation |
291,351 | TerminalColorPalette () { return myUiSettingsManager.getTerminalColorPalette(); } | getTerminalColorPalette |
291,352 | TerminalAction (@Nullable JBTerminalWidgetListener listener, boolean forward) { String actionId = forward ? "Terminal.NextSplitter" : "Terminal.PrevSplitter"; String text = UIUtil.removeMnemonic(getGotoNextSplitTerminalActionText(forward)); return new TerminalAction(new TerminalActionPresentation(text, getKeyStrokesByActionId(actionId)), event -> { if (listener != null) { listener.gotoNextSplitTerminal(forward); } return true; }); } | getGotoNextSplitTerminalAction |
291,353 | List<KeyStroke> (@NotNull String actionId, @NotNull String failoverActionId) { List<KeyStroke> strokes = getKeyStrokesByActionId(actionId); if (strokes.isEmpty() && ActionManager.getInstance().getAction(actionId) == null) { strokes = getKeyStrokesByActionId(failoverActionId); } return strokes; } | getKeyStrokesByActionId |
291,354 | List<KeyStroke> (@NotNull String actionId) { return ContainerUtil.mapNotNull(KeymapUtil.getActiveKeymapShortcuts(actionId).getShortcuts(), shortcut -> { return shortcut instanceof KeyboardShortcut ks ? ks.getFirstKeyStroke() : null; }); } | getKeyStrokesByActionId |
291,355 | TerminalActionPresentation () { return new TerminalActionPresentation(IdeBundle.message("terminal.action.SelectNextTab.text"), getKeyStrokesByActionId("NextTab")); } | getNextTabActionPresentation |
291,356 | TerminalActionPresentation () { return new TerminalActionPresentation(IdeBundle.message("terminal.action.SelectPreviousTab.text"), getKeyStrokesByActionId("PreviousTab")); } | getPreviousTabActionPresentation |
291,357 | TerminalActionPresentation () { return new TerminalActionPresentation(IdeBundle.message("terminal.action.MoveRight.text"), getKeyStrokesByActionId("Terminal.MoveToolWindowTabRight")); } | getMoveTabRightActionPresentation |
291,358 | TerminalActionPresentation () { return new TerminalActionPresentation(IdeBundle.message("terminal.action.MoveLeft.text"), getKeyStrokesByActionId("Terminal.MoveToolWindowTabLeft")); } | getMoveTabLeftActionPresentation |
291,359 | TerminalActionPresentation () { return new TerminalActionPresentation(IdeBundle.message("terminal.action.ShowTabs.text"), getKeyStrokesByActionId(ShowContentAction.ACTION_ID)); } | getShowTabsActionPresentation |
291,360 | float () { return getColorsScheme().getConsoleLineSpacing(); } | getLineSpacing |
291,361 | TextStyle () { return new TextStyle(fromAwtToTerminalColor(getColorsScheme().getColor(EditorColors.SELECTION_FOREGROUND_COLOR)), fromAwtToTerminalColor(getColorsScheme().getColor(EditorColors.SELECTION_BACKGROUND_COLOR))); } | getSelectionColor |
291,362 | TextStyle () { return new TextStyle(fromAwtToTerminalColor(getColorsScheme().getAttributes(EditorColors.TEXT_SEARCH_RESULT_ATTRIBUTES).getForegroundColor()), fromAwtToTerminalColor(getColorsScheme().getAttributes(EditorColors.TEXT_SEARCH_RESULT_ATTRIBUTES).getBackgroundColor())); } | getFoundPatternColor |
291,363 | TextStyle () { return new TextStyle(fromAwtToTerminalColor(getColorsScheme().getAttributes(EditorColors.REFERENCE_HYPERLINK_COLOR).getForegroundColor()), fromAwtToTerminalColor(getColorsScheme().getAttributes(EditorColors.REFERENCE_HYPERLINK_COLOR).getBackgroundColor())); } | getHyperlinkColor |
291,364 | TextStyle () { return new TextStyle(new TerminalColor(() -> getTerminalColorPalette().getDefaultForeground()), new TerminalColor(() -> getTerminalColorPalette().getDefaultBackground())); } | getDefaultStyle |
291,365 | Font () { Font font = getColorsScheme().getFont(EditorFontType.CONSOLE_PLAIN); return font.deriveFont(getTerminalFontSize()); } | getTerminalFont |
291,366 | float () { return (float)myUiSettingsManager.getFontSize(); } | getTerminalFontSize |
291,367 | boolean () { return true; // we return true here because all the settings are checked again in UiSettings.setupAntialiasing } | useAntialiasing |
291,368 | boolean () { return SystemInfo.isLinux; } | copyOnSelect |
291,369 | boolean () { return true; } | pasteOnMiddleMouseClick |
291,370 | int () { final int linesCount = AdvancedSettings.getInt("terminal.buffer.max.lines.count"); if (linesCount > 0) { return linesCount; } else { return super.getBufferMaxLinesCount(); } } | getBufferMaxLinesCount |
291,371 | boolean () { return false; } | overrideIdeShortcuts |
291,372 | boolean () { return false; } | useInverseSelectionColor |
291,373 | int () { EditorSettingsExternalizable instance = EditorSettingsExternalizable.getInstance(); return instance.isBlinkCaret() ? instance.getBlinkPeriod() : 0; } | caretBlinkingMs |
291,374 | CursorShape () { EditorSettingsExternalizable editorSettings = EditorSettingsExternalizable.getInstance(); TerminalUiSettingsManager.CursorShape shape = TerminalUiSettingsManager.getInstance().getCursorShape(); if (shape == TerminalUiSettingsManager.CursorShape.BLOCK) { return editorSettings.isBlinkCaret() ? CursorShape.BLINK_BLOCK : CursorShape.STEADY_BLOCK; } if (shape == TerminalUiSettingsManager.CursorShape.UNDERLINE) { return editorSettings.isBlinkCaret() ? CursorShape.BLINK_UNDERLINE : CursorShape.STEADY_UNDERLINE; } return editorSettings.isBlinkCaret() ? CursorShape.BLINK_VERTICAL_BAR : CursorShape.STEADY_VERTICAL_BAR; } | getCursorShape |
291,375 | boolean () { return AdvancedSettings.getBoolean("terminal.use.1.0.line.spacing.for.alternative.screen.buffer"); } | shouldDisableLineSpacingForAlternateScreenBuffer |
291,376 | boolean () { return AdvancedSettings.getBoolean("terminal.fill.character.background.including.line.spacing"); } | shouldFillCharacterBackgroundIncludingLineSpacing |
291,377 | TerminalActionPresentation () { return new TerminalActionPresentation("New Session", com.jediterm.terminal.ui.UIUtil.isMac ? KeyStroke.getKeyStroke(KeyEvent.VK_T, InputEvent.META_DOWN_MASK) : KeyStroke.getKeyStroke(KeyEvent.VK_T, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK)); } | getNewSessionActionPresentation |
291,378 | TerminalActionPresentation () { return new TerminalActionPresentation("Close Session", com.jediterm.terminal.ui.UIUtil.isMac ? KeyStroke.getKeyStroke(KeyEvent.VK_W, InputEvent.META_DOWN_MASK) : KeyStroke.getKeyStroke(KeyEvent.VK_W, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK)); } | getCloseSessionActionPresentation |
291,379 | Component (Container aContainer) { return getTerminalPanel(); } | getDefaultComponent |
291,380 | LinkInfo (@NotNull Project project, @NotNull HyperlinkInfo info) { LinkInfoEx.Builder builder = new LinkInfoEx.Builder().setNavigateCallback(() -> { info.navigate(project); }); if (info instanceof HyperlinkWithPopupMenuInfo) { builder.setPopupMenuGroupProvider(new LinkInfoEx.PopupMenuGroupProvider() { @Override public @NotNull List<TerminalAction> getPopupMenuGroup(@NotNull MouseEvent event) { ActionGroup group = ((HyperlinkWithPopupMenuInfo)info).getPopupMenuGroup(event); AnAction[] actions = group != null ? group.getChildren(null) : AnAction.EMPTY_ARRAY; return ContainerUtil.map(actions, action -> TerminalActionUtil.createTerminalAction(JBTerminalWidget.this, action)); } }); } if (info instanceof HyperlinkWithHoverInfo) { builder.setHoverConsumer(new LinkInfoEx.HoverConsumer() { @Override public void onMouseEntered(@NotNull JComponent hostComponent, @NotNull Rectangle linkBounds) { ((HyperlinkWithHoverInfo)info).onMouseEntered(hostComponent, linkBounds); } @Override public void onMouseExited() { ((HyperlinkWithHoverInfo)info).onMouseExited(); } }); } return builder.build(); } | convertInfo |
291,381 | List<TerminalAction> (@NotNull MouseEvent event) { ActionGroup group = ((HyperlinkWithPopupMenuInfo)info).getPopupMenuGroup(event); AnAction[] actions = group != null ? group.getChildren(null) : AnAction.EMPTY_ARRAY; return ContainerUtil.map(actions, action -> TerminalActionUtil.createTerminalAction(JBTerminalWidget.this, action)); } | getPopupMenuGroup |
291,382 | void (@NotNull JComponent hostComponent, @NotNull Rectangle linkBounds) { ((HyperlinkWithHoverInfo)info).onMouseEntered(hostComponent, linkBounds); } | onMouseEntered |
291,383 | void () { ((HyperlinkWithHoverInfo)info).onMouseExited(); } | onMouseExited |
291,384 | JBTerminalWidgetListener () { return myListener; } | getListener |
291,385 | void (JBTerminalWidgetListener listener) { myListener = listener; } | setListener |
291,386 | Project () { return myProject; } | getProject |
291,387 | TerminalExecutorServiceManager () { return new TerminalExecutorServiceManagerImpl(); } | createExecutorServiceManager |
291,388 | JBTerminalPanel (@NotNull SettingsProvider settingsProvider, @NotNull StyleState styleState, @NotNull TerminalTextBuffer textBuffer) { JBTerminalPanel panel = new JBTerminalPanel((JBTerminalSystemSettingsProviderBase)settingsProvider, textBuffer, styleState); Disposer.register(this, panel); return panel; } | createTerminalPanel |
291,389 | JBTerminalPanel () { return (JBTerminalPanel)super.getTerminalPanel(); } | getTerminalPanel |
291,390 | void (@NotNull TtyConnector ttyConnector) { super.setTtyConnector(ttyConnector); myTerminalTitle.change(terminalTitleState -> { if (terminalTitleState.getDefaultTitle() == null) { terminalTitleState.setDefaultTitle(getDefaultSessionName(ttyConnector)); } return null; }); } | setTtyConnector |
291,391 | Graphics (Graphics graphics) { return JBSwingUtilities.runGlobalCGTransform(this, super.getComponentGraphics(graphics)); } | getComponentGraphics |
291,392 | JScrollBar () { JBScrollBar bar = new JBScrollBar() { @Override public Color getBackground() { return myTerminalPanel.getBackground(); } }; bar.setOpaque(true); bar.putClientProperty(JBScrollPane.Alignment.class, JBScrollPane.Alignment.RIGHT); bar.putClientProperty(JBScrollBar.TRACK, (RegionPainter<Object>)(g, x, y, width, height, object) -> { SubstringFinder.FindResult result = myTerminalPanel.getFindResult(); if (result != null) { int modelHeight = bar.getModel().getMaximum() - bar.getModel().getMinimum(); TerminalColor backgroundColor = mySettingsProvider.getFoundPatternColor().getBackground(); if (backgroundColor != null) { g.setColor(AwtTransformers.toAwtColor(mySettingsProvider.getTerminalColorPalette().getBackground(backgroundColor))); } int anchorHeight = Math.max(2, height / modelHeight); for (SubstringFinder.FindResult.FindItem r : result.getItems()) { int where = height * r.getStart().y / modelHeight; g.fillRect(x, y + where, width, anchorHeight); } } }); return bar; } | createScrollBar |
291,393 | Color () { return myTerminalPanel.getBackground(); } | getBackground |
291,394 | int () { return getSettingsProvider().getUiSettingsManager().getFontSize(); } | getFontSize |
291,395 | float () { return getSettingsProvider().getUiSettingsManager().getFontSize2D(); } | getFontSize2D |
291,396 | void (int fontSize) { setFontSize((float)fontSize); } | setFontSize |
291,397 | void (float fontSize) { getSettingsProvider().getUiSettingsManager().setFontSize(fontSize); } | setFontSize |
291,398 | void () { getSettingsProvider().getUiSettingsManager().resetFontSize(); } | resetFontSize |
291,399 | boolean (@Nullable ToolWindow toolWindow) { return toolWindow != null && "Terminal".equals(toolWindow.getId()); // TerminalToolWindowFactory.TOOL_WINDOW_ID is not visible here } | isTerminalToolWindow |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.