Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
291,200 | void (@NotNull AnActionEvent e, boolean state) { Toggleable.setSelected(e.getPresentation(), state); } | setSelected |
291,201 | JComponent (@NotNull Presentation presentation, @NotNull String place) { var button = new ActionButton(this, presentation, "LogSearchFilterToolbar", ActionToolbar.DEFAULT_MINIMUM_BUTTON_SIZE); var panel = new NonOpaquePanel(); panel.setBorder(new JBEmptyBorder(0, 2, 0, 2)); panel.setLayout(new HorizontalLayout(4, Swing... | createCustomComponent |
291,202 | void (@NotNull JComponent component, @NotNull Presentation presentation) { component.setVisible(presentation.isVisible()); component.setEnabled(presentation.isEnabled()); getSearchFilterComponent().setVisible(Toggleable.isSelected(presentation)); var icon = presentation.getIcon(); if (icon instanceof LayeredIcon && ((L... | updateCustomComponent |
291,203 | void () { final ReaderThread readerThread = myReaderThread; if (readerThread == null) { return; } if (isActive() && !readerThread.myRunning) { resetLogFilter(); myFilter.setSelectedItem(myModel.getCustomFilter()); readerThread.startRunning(); ApplicationManager.getApplication().executeOnPooledThread(readerThread); } el... | activate |
291,204 | String () { return myTitle; } | getTabTitle |
291,205 | void () { myModel.removeFilterListener(this); stopRunning(false); if (myDisposed) return; myDisposed = true; Disposer.dispose(myConsole); myConsole = null; myFilter.dispose(); myFilter = null; myOriginalDocument = null; } | dispose |
291,206 | void (boolean checkActive) { if (!checkActive) { fireLoggingWillBeStopped(); } final ReaderThread readerThread = myReaderThread; if (readerThread != null && readerThread.myReader != null) { if (!checkActive) { readerThread.stopRunning(); try { readerThread.myReader.close(); } catch (IOException e) { LOG.warn(e); } read... | stopRunning |
291,207 | void (final String text) { if (myDisposed) return; if (text == null) return; final LogFilterModel.MyProcessingResult processingResult = myModel.processLine(text); if (processingResult.isApplicable()) { final Key key = processingResult.getKey(); if (key != null) { final String messagePrefix = processingResult.getMessage... | addMessage |
291,208 | void (final ProcessHandler process) { if (process != null) { final ProcessAdapter stopListener = new ProcessAdapter() { @Override public void processTerminated(final @NotNull ProcessEvent event) { process.removeProcessListener(this); stopRunning(true); } }; process.addProcessListener(stopListener); } } | attachStopLogConsoleTrackingListener |
291,209 | void (final @NotNull ProcessEvent event) { process.removeProcessListener(this); stopRunning(true); } | processTerminated |
291,210 | StringBuffer () { if (myOriginalDocument == null) { final Editor editor = getEditor(); if (editor != null) { myOriginalDocument = new StringBuffer(editor.getDocument().getText()); } } else { if (ConsoleBuffer.useCycleBuffer()) { resizeBuffer(myOriginalDocument, ConsoleBuffer.getCycleBufferSize()); } } return myOriginal... | getOriginalDocument |
291,211 | void (@NotNull StringBuffer buffer, int size) { final int toRemove = buffer.length() - size; if (toRemove > 0) { int indexOfNewline = buffer.indexOf("\n", toRemove); if (indexOfNewline == -1) { buffer.delete(0, toRemove); } else { buffer.delete(0, indexOfNewline + 1); } } } | resizeBuffer |
291,212 | void () { ApplicationManager.getApplication().invokeLater(() -> computeSelectedLineAndFilter()); } | filterConsoleOutput |
291,213 | void () { // we have to do this in dispatch thread, because ConsoleViewImpl can flush something to document otherwise myOriginalDocument = getOriginalDocument(); if (myOriginalDocument != null) { final Editor editor = getEditor(); LOG.assertTrue(editor != null); final Document document = editor.getDocument(); final int... | computeSelectedLineAndFilter |
291,214 | void () { if (myDisposed) { return; } final ConsoleView console = getConsoleNotNull(); console.clear(); myModel.processingStarted(); final String[] lines = myOriginalDocument != null ? myOriginalDocument.toString().split("\n") : ArrayUtilRt.EMPTY_STRING_ARRAY; int offset = 0; boolean caretPositioned = false; AnsiEscape... | doFilter |
291,215 | int (@NotNull String line, @NotNull BiConsumer<? super String, ? super Key> printer) { final LogFilterModel.MyProcessingResult processingResult = myModel.processLine(line); if (processingResult.isApplicable()) { final Key key = processingResult.getKey(); if (key != null) { final String messagePrefix = processingResult.... | printMessageToConsole |
291,216 | ConsoleView () { final ConsoleView console = getConsole(); assert console != null: "it looks like console has been disposed"; return console; } | getConsoleNotNull |
291,217 | ActionGroup () { return getOrCreateActions(); } | getToolbarActions |
291,218 | String () { return ActionPlaces.UNKNOWN; } | getToolbarPlace |
291,219 | JComponent () { return getConsoleNotNull().getPreferredFocusableComponent(); } | getPreferredFocusableComponent |
291,220 | String () { return myTitle; } | getTitle |
291,221 | void () { getConsoleNotNull().clear(); myOriginalDocument = null; } | clear |
291,222 | JComponent () { myLogFilterCombo.setModel(new DefaultComboBoxModel<>(myFilters.toArray(new LogFilter[0]))); resetLogFilter(); myLogFilterCombo.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { final LogFilter filter = (LogFilter)myLogFilterCombo.getSelectedItem(); final Tas... | getSearchComponent |
291,223 | void (ActionEvent e) { final LogFilter filter = (LogFilter)myLogFilterCombo.getSelectedItem(); final Task.Backgroundable task = new Task.Backgroundable(myProject, getApplyingFilterTitle()) { @Override public void run(@NotNull ProgressIndicator indicator) { myModel.selectFilter(filter); } }; ProgressManager.getInstance(... | actionPerformed |
291,224 | void (@NotNull ProgressIndicator indicator) { myModel.selectFilter(filter); } | run |
291,225 | void () { for (LogFilter filter : myFilters) { if (myModel.isFilterSelected(filter)) { if (myLogFilterCombo.getSelectedItem() != filter) { myLogFilterCombo.setSelectedItem(filter); break; } } } } | resetLogFilter |
291,226 | Component () { return myFilter; } | getTextFilterComponent |
291,227 | boolean () { return myBuildInActions; } | isContentBuiltIn |
291,228 | void (String text, Key outputType) { myProcessHandler.notifyTextAvailable(text, outputType); } | writeToConsole |
291,229 | void (LogConsoleListener listener) { myListeners.add(listener); } | addListener |
291,230 | void () { for (LogConsoleListener listener : myListeners) { listener.loggingWillBeStopped(); } } | fireLoggingWillBeStopped |
291,231 | void (@NotNull String text, @NotNull Key outputType) { myDecoder.escapeText(text, outputType, (chunk, attributes) -> super.notifyTextAvailable(chunk, attributes)); } | notifyTextAvailable |
291,232 | void () { throw new UnsupportedOperationException(); } | destroyProcessImpl |
291,233 | void () { throw new UnsupportedOperationException(); } | detachProcessImpl |
291,234 | boolean () { return false; } | detachIsDefault |
291,235 | void () { if (myReader == null) return; final Runnable runnable = new Runnable() { @Override public void run() { if (myRunning) { try { myReader = updateReaderIfNeeded(myReader); int i = 0; while (i++ < 1000) { final BufferedReader reader = myReader; if (myRunning && reader != null && reader.ready()) { addMessage(reade... | run |
291,236 | void () { if (myRunning) { try { myReader = updateReaderIfNeeded(myReader); int i = 0; while (i++ < 1000) { final BufferedReader reader = myReader; if (myRunning && reader != null && reader.ready()) { addMessage(reader.readLine()); } else { break; } } } catch (IOException e) { LOG.info(e); addMessage("I/O Error" + (e.g... | run |
291,237 | void () { myRunning = true; } | startRunning |
291,238 | void () { myRunning = false; synchronized (this) { notifyAll(); } } | stopRunning |
291,239 | void (final @NlsContexts.TabTitle @NotNull String name, final @NotNull String path, @NotNull Charset charset, final long skippedContent, @NotNull RunConfigurationBase runConfiguration) { boolean useBuildInActions = UIExperiment.isNewDebuggerUIEnabled(); doAddLogConsole(new LogConsoleImpl(myProject, new File(path), char... | addLogConsole |
291,240 | boolean () { return isConsoleActive(path); } | isActive |
291,241 | void (final @NotNull LogConsoleBase log, String id, Icon icon, @Nullable RunProfile runProfile) { if (runProfile instanceof RunConfigurationBase) { ((RunConfigurationBase<?>)runProfile).customizeLogConsole(log); } log.attachStopLogConsoleTrackingListener(getProcessHandler()); addAdditionalTabComponent(log, id, icon); g... | doAddLogConsole |
291,242 | void (final @NotNull ContentManagerEvent event) { log.activate(); } | selectionChanged |
291,243 | boolean (String id) { final Content content = getUi().findContent(id); return content != null && content.isSelected(); } | isConsoleActive |
291,244 | void (@NotNull String path) { Content content = getUi().findContent(path); if (content != null) { removeAdditionalTabComponent((LogConsoleBase)content.getComponent()); } } | removeLogConsole |
291,245 | void (@NotNull AdditionalTabComponent tabComponent, @NotNull String id) { addAdditionalTabComponent(tabComponent, id, getDefaultIcon()); } | addAdditionalTabComponent |
291,246 | Content (@NotNull AdditionalTabComponent tabComponent, @NotNull String id, @Nullable Icon icon) { return addAdditionalTabComponent(tabComponent, id, icon, true); } | addAdditionalTabComponent |
291,247 | Content (@NotNull AdditionalTabComponent tabComponent, @NotNull String id, @Nullable Icon icon, boolean closeable) { Content logContent = getUi().createContent(id, (ComponentWithActions)tabComponent, tabComponent.getTabTitle(), icon, tabComponent.getPreferredFocusableComponent()); logContent.setCloseable(closeable); my... | addAdditionalTabComponent |
291,248 | void (@NotNull AdditionalTabComponent component) { Disposer.dispose(component); final Content content = myAdditionalContent.remove(component); if (!getUi().isDisposed()) { getUi().removeContent(content, true); } } | removeAdditionalTabComponent |
291,249 | void () { for (AdditionalTabComponent component : myAdditionalContent.keySet().toArray(new AdditionalTabComponent[0])) { removeAdditionalTabComponent(component); } } | dispose |
291,250 | String (String msg) { return msg; } | formatMessage |
291,251 | String (String msg) { return msg; } | formatPrefix |
291,252 | void (@NlsSafe String name, @NlsSafe String pattern, boolean showAll) { myNameField.setText(name); myFilePattern.setText(pattern); myShowFilesCombo.setSelected(showAll); setOKActionEnabled(pattern != null && pattern.length() > 0); } | init |
291,253 | JComponent () { myFilePattern.addBrowseFolderListener(UIBundle.message("file.chooser.default.title"), null, null, FileChooserDescriptorFactory.createSingleFileOrFolderDescriptor(), TextComponentAccessor.TEXT_FIELD_WHOLE_TEXT); myFilePattern.getTextField().getDocument().addDocumentListener(new DocumentAdapter() { @Overr... | createCenterPanel |
291,254 | void (@NotNull DocumentEvent e) { setOKActionEnabled(myFilePattern.getText().length() > 0); } | textChanged |
291,255 | JComponent () { return myNameField; } | getPreferredFocusedComponent |
291,256 | boolean () { return myShowFilesCombo.isSelected(); } | isShowAllFiles |
291,257 | String () { final String name = myNameField.getText(); if (name != null && name.length() > 0){ return name; } return myFilePattern.getText(); } | getName |
291,258 | String () { return myFilePattern.getText(); } | getLogPattern |
291,259 | String () { return "reference.run.configuration.edit.logfile.aliases"; } | getHelpId |
291,260 | File (final @NotNull RunConfigurationBase configuration) { String outputFilePath = configuration.getOutputFilePath(); if (outputFilePath != null) { final String filePath = FileUtil.toSystemDependentName(outputFilePath); File file = new File(filePath); if (configuration instanceof CommonProgramRunConfigurationParameters... | getOutputFile |
291,261 | void (final @NotNull RunConfigurationBase configuration, final @NotNull ProcessHandler startedProcess, final @Nullable ExecutionConsole console) { if (!configuration.isSaveOutputToFile()) { return; } final File file = getOutputFile(configuration); if (file != null) { startedProcess.addProcessListener(new ProcessAdapter... | attachDumpListener |
291,262 | void (@NotNull ProcessEvent event, @NotNull Key outputType) { if (configuration.collectOutputFromProcessHandler() && myOutput != null && outputType != ProcessOutputTypes.SYSTEM) { myOutput.print(event.getText()); } } | onTextAvailable |
291,263 | void (@NotNull ProcessEvent event) { try { myOutput = new PrintStream(new FileOutputStream(file)); } catch (FileNotFoundException ignored) { } startedProcess.notifyTextAvailable(CONSOLE_OUTPUT_FILE_MESSAGE + FileUtil.toSystemDependentName(file.getAbsolutePath()) + "\n", ProcessOutputTypes.SYSTEM); } | startNotified |
291,264 | void (@NotNull ProcessEvent event) { startedProcess.removeProcessListener(this); if (myOutput != null) { myOutput.close(); } } | processTerminated |
291,265 | Result (@NotNull String line, int entireLength) { if (line.startsWith(CONSOLE_OUTPUT_FILE_MESSAGE)) { final String filePath = StringUtil.trimEnd(line.substring(CONSOLE_OUTPUT_FILE_MESSAGE.length()), "\n"); return new Result(entireLength - filePath.length() - 1, entireLength, new HyperlinkInfo() { @Override public void ... | applyFilter |
291,266 | void (@NotNull Project project) { final VirtualFile file = WriteAction .compute(() -> LocalFileSystem.getInstance().refreshAndFindFileByPath(FileUtil.toSystemIndependentName(filePath))); if (file != null) { file.refresh(false, false); ApplicationManager.getApplication().runReadAction(() -> { FileEditorManager.getInstan... | navigate |
291,267 | 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.setPre... | setUpColumnWidth |
291,268 | void (RunConfigurationBase configurationBase) { List<LogFileOptions> items = myModel.getItems(); List<LogFileOptions> newItems = new ArrayList<>(); boolean changed = false; for (LogFileOptions item : items) { final PredefinedLogFile predefined = myLog2Predefined.get(item); if (predefined != null) { final LogFileOptions... | refreshPredefinedLogFiles |
291,269 | void (final @NotNull RunConfigurationBase 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.is... | resetEditorFrom |
291,270 | JComponent () { return myWholePanel; } | createEditor |
291,271 | 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.isS... | showEditorDialog |
291,272 | TableCellRenderer (final LogFileOptions p0) { return new DefaultTableCellRenderer() { @Override public @NotNull Component getTableCellRendererComponent(@NotNull JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { final Component renderer = super.getTableCellRendererComponent(table, ... | getRenderer |
291,273 | Component (@NotNull JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { final Component renderer = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); setText(((LogFileOptions)value).getName()); setBackground(isSelected ? table.getSelectionBackgroun... | getTableCellRendererComponent |
291,274 | LogFileOptions (final LogFileOptions object) { return object; } | valueOf |
291,275 | TableCellEditor (final LogFileOptions item) { return new LogFileCellEditor(item); } | getEditor |
291,276 | void (final LogFileOptions o, final LogFileOptions aValue) { if (aValue != null) { if (!o.getName().equals(aValue.getName()) || !o.getPathPattern().equals(aValue.getPathPattern()) || o.isShowAll() != aValue.isShowAll()) { myLog2Predefined.remove(o); } o.setName(aValue.getName()); o.setShowAll(aValue.isShowAll()); o.set... | setValue |
291,277 | boolean (final LogFileOptions o) { return !myLog2Predefined.containsKey(o); } | isCellEditable |
291,278 | Class () { return Boolean.class; } | getColumnClass |
291,279 | Boolean (final LogFileOptions object) { return object.isEnabled(); } | valueOf |
291,280 | boolean (LogFileOptions element) { return true; } | isCellEditable |
291,281 | void (LogFileOptions element, Boolean checked) { final PredefinedLogFile predefinedLogFile = myLog2Predefined.get(element); if (predefinedLogFile != null) { predefinedLogFile.setEnabled(checked.booleanValue()); } element.setEnabled(checked.booleanValue()); } | setValue |
291,282 | Class () { return Boolean.class; } | getColumnClass |
291,283 | Boolean (final LogFileOptions element) { return element.isSkipContent(); } | valueOf |
291,284 | boolean (LogFileOptions element) { return !myLog2Predefined.containsKey(element); } | isCellEditable |
291,285 | void (LogFileOptions element, Boolean skipped) { element.setSkipContent(skipped.booleanValue()); } | setValue |
291,286 | Object () { return myLogFileOptions; } | getCellEditorValue |
291,287 | JTextField () { return myComponent.getChildComponent(); } | getChildComponent |
291,288 | Component (JTable table, Object value, boolean isSelected, int row, int column) { getChildComponent().setText(((LogFileOptions)value).getName()); return myComponent; } | getTableCellEditorComponent |
291,289 | void () { if (project.isDisposed()) { return; } for (final LogFile logFile : new ArrayList<>(myLogFiles)) { ProcessHandler process = logFile.getProcess(); if (process != null && process.isProcessTerminated()) { myLogFiles.remove(logFile); continue; } final Set<String> oldPaths = logFile.getPaths(); final Set<String> ne... | run |
291,290 | void (@NotNull RunConfigurationBase<?> runConfiguration, @Nullable ProcessHandler startedProcess) { for (LogFileOptions logFileOptions : runConfiguration.getAllLogFiles()) { if (logFileOptions.isEnabled()) { myLogFiles.add(new LogFile(logFileOptions, runConfiguration, startedProcess)); } } myUpdateAlarm.request(); runC... | addLogConsoles |
291,291 | void (@NotNull LogFileOptions logFile, @NotNull Condition<? super String> shouldInclude, @NotNull Set<String> paths, @NotNull RunConfigurationBase runConfiguration) { if (paths.isEmpty()) { return; } TreeMap<String, String> titleToPath = new TreeMap<>(); if (paths.size() == 1) { String path = paths.iterator().next(); i... | addConfigurationConsoles |
291,292 | LogFileOptions () { return myOptions; } | getOptions |
291,293 | RunConfigurationBase () { return myConfiguration; } | getConfiguration |
291,294 | ProcessHandler () { return myProcess; } | getProcess |
291,295 | Set<String> () { return myPaths; } | getPaths |
291,296 | void (Set<String> paths) { myPaths = paths; } | setPaths |
291,297 | LogConsolePreferences () { return LogConsolePreferences.getInstance(myProject); } | getPreferences |
291,298 | boolean () { return myCheckStandardFilters; } | isCheckStandartFilters |
291,299 | void (boolean checkStandardFilters) { myCheckStandardFilters = checkStandardFilters; } | setCheckStandartFilters |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.