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, SwingConstants.CENTER)); panel.add(getSearchFilterComponent()); panel.add(new FlowLayoutWrapper(button)); return panel; } | 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 && ((LayeredIcon)icon).getIconCount() == 2) { ((LayeredIcon)icon).setIcon(isModified(component) ? AllIcons.Nodes.TabAlert : null, 1); presentation.setIcon(icon); } } | 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); } else if (!isActive() && readerThread.myRunning) { readerThread.stopRunning(); } } | 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); } readerThread.myReader = null; myReaderThread = null; } else { try { final BufferedReader reader = readerThread.myReader; while (reader.ready()) { addMessage(reader.readLine()); } } catch (IOException ignore) {} stopRunning(false); } } } | 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.getMessagePrefix(); if (messagePrefix != null) { String formattedPrefix = myFormatter.formatPrefix(messagePrefix); myProcessHandler.notifyTextAvailable(formattedPrefix, key); } String formattedMessage = myFormatter.formatMessage(text); myProcessHandler.notifyTextAvailable(formattedMessage + "\n", key); } } myOriginalDocument = getOriginalDocument(); if (myOriginalDocument != null) { myOriginalDocument.append(text).append("\n"); } } | 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 myOriginalDocument; } | 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 caretOffset = editor.getCaretModel().getOffset(); myLineUnderSelection = null; myLineOffset = -1; if (caretOffset > -1 && caretOffset < document.getTextLength()) { int line; try { line = document.getLineNumber(caretOffset); } catch (IllegalStateException e) { throw new IllegalStateException("document.length=" + document.getTextLength() + ", caret offset = " + caretOffset + "; " + e.getMessage(), e); } if (line > -1 && line < document.getLineCount()) { final int startOffset = document.getLineStartOffset(line); myLineUnderSelection = document.getText().substring(startOffset, document.getLineEndOffset(line)); myLineOffset = caretOffset - startOffset; } } } ApplicationManager.getApplication().executeOnPooledThread(() -> doFilter()); } | 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; AnsiEscapeDecoder decoder = new AnsiEscapeDecoder(); for (String line : lines) { @SuppressWarnings("CodeBlock2Expr") final int printed = printMessageToConsole(line, (text, key) -> { decoder.escapeText(text, key, (chunk, attributes) -> { console.print(chunk, ConsoleViewContentType.getConsoleViewType(attributes)); }); }); if (printed > 0) { if (!caretPositioned) { if (Comparing.strEqual(myLineUnderSelection, line)) { caretPositioned = true; offset += myLineOffset != -1 ? myLineOffset : 0; } else { offset += printed; } } } } // we need this, because, document can change before actual scrolling, so offset may be already not at the end if (caretPositioned) { console.scrollTo(offset); } else { console.requestScrollingToEnd(); } } | 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.getMessagePrefix(); if (messagePrefix != null) { printer.accept(myFormatter.formatPrefix(messagePrefix), key); } printer.accept(myFormatter.formatMessage(line) + "\n", key); return (messagePrefix != null ? messagePrefix.length() : 0) + line.length() + 1; } } return 0; } | 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 Task.Backgroundable task = new Task.Backgroundable(myProject, getApplyingFilterTitle()) { @Override public void run(@NotNull ProgressIndicator indicator) { myModel.selectFilter(filter); } }; ProgressManager.getInstance().run(task); } }); AccessibleContextUtil.setName(myLogFilterCombo, ExecutionBundle.message("log.filter.combo.accessible.name")); myTextFilterWrapper.removeAll(); myTextFilterWrapper.add(getTextFilterComponent()); return mySearchComponent; } | 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().run(task); } | 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(reader.readLine()); } else { break; } } } catch (IOException e) { LOG.info(e); addMessage("I/O Error" + (e.getMessage() != null ? ": " + e.getMessage() : "")); return; } } if (myAlarm.isDisposed()) return; myAlarm.addRequest(this, 100); } }; if (myAlarm.isDisposed()) return; myAlarm.addRequest(runnable, 10); } | 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.getMessage() != null ? ": " + e.getMessage() : "")); return; } } if (myAlarm.isDisposed()) return; myAlarm.addRequest(this, 100); } | 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), charset, skippedContent, name, useBuildInActions, mySearchScope) { @Override public boolean isActive() { return isConsoleActive(path); } }, path, getDefaultIcon(), runConfiguration); } | 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); getUi().addListener(new ContentManagerListener() { @Override public void selectionChanged(final @NotNull ContentManagerEvent event) { log.activate(); } }, log); } | 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); myAdditionalContent.put(tabComponent, logContent); getUi().addContent(logContent); return logContent; } | 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() { @Override protected void textChanged(@NotNull DocumentEvent e) { setOKActionEnabled(myFilePattern.getText().length() > 0); } }); return myWholePanel; } | 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 && !FileUtil.isAbsolute(filePath)) { String directory = ((CommonProgramRunConfigurationParameters)configuration).getWorkingDirectory(); if (directory != null) { file = new File(new File(directory), filePath); } } return file; } return null; } | 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() { private PrintStream myOutput; @Override public void onTextAvailable(@NotNull ProcessEvent event, @NotNull Key outputType) { if (configuration.collectOutputFromProcessHandler() && myOutput != null && outputType != ProcessOutputTypes.SYSTEM) { myOutput.print(event.getText()); } } @Override public void startNotified(@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); } @Override public void processTerminated(@NotNull ProcessEvent event) { startedProcess.removeProcessListener(this); if (myOutput != null) { myOutput.close(); } } }); if (console instanceof ConsoleView) { ((ConsoleView)console).addMessageFilter(new ShowOutputFileFilter()); } } } | 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 navigate(@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.getInstance(project).openTextEditor(new OpenFileDescriptor(project, file), true); }); } } }); } return null; } | 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.getInstance(project).openTextEditor(new OpenFileDescriptor(project, file), true); }); } } | 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.setPreferredWidth(preferredWidth); tableColumn.setMinWidth(preferredWidth); tableColumn.setMaxWidth(preferredWidth); } | 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 options = configurationBase.getOptionsForPredefinedLogFile(predefined); if (LogFileOptions.areEqual(item, options)) { newItems.add(item); } else { changed = true; myLog2Predefined.remove(item); if (options == null) { myUnresolvedPredefined.add(predefined); } else { newItems.add(options); myLog2Predefined.put(options, predefined); } } } else { newItems.add(item); } } final PredefinedLogFile[] unresolved = myUnresolvedPredefined.toArray(new PredefinedLogFile[0]); for (PredefinedLogFile logFile : unresolved) { final LogFileOptions options = configurationBase.getOptionsForPredefinedLogFile(logFile); if (options != null) { changed = true; myUnresolvedPredefined.remove(logFile); myLog2Predefined.put(options, logFile); newItems.add(options); } } if (changed) { myModel.setItems(newItems); } } | 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.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); final boolean redirectOutputToFile = configuration.isSaveOutputToFile(); myRedirectOutputCb.setSelected(redirectOutputToFile); final String fileOutputPath = configuration.getOutputFilePath(); myOutputFile.setText(fileOutputPath != null ? FileUtil.toSystemDependentName(fileOutputPath) : ""); myOutputFile.setEnabled(redirectOutputToFile); myShowConsoleOnStdOutCb.setSelected(configuration.isShowConsoleOnStdOut()); myShowConsoleOnStdErrCb.setSelected(configuration.isShowConsoleOnStdErr()); } | 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.isShowAllFiles()); return true; } return false; } | 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, value, isSelected, hasFocus, row, column); setText(((LogFileOptions)value).getName()); setBackground(isSelected ? table.getSelectionBackground() : table.getBackground()); setBorder(null); return renderer; } }; } | 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.getSelectionBackground() : table.getBackground()); setBorder(null); return renderer; } | 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.setPathPattern(aValue.getPathPattern()); } } | 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> newPaths = logFile.getOptions().getPaths(); // should not be called in UI thread logFile.setPaths(newPaths); final Set<String> obsoletePaths = new HashSet<>(oldPaths); obsoletePaths.removeAll(newPaths); try { SwingUtilities.invokeAndWait(() -> { if (project.isDisposed()) { return; } addConfigurationConsoles(logFile.getOptions(), file -> !oldPaths.contains(file), newPaths, logFile.getConfiguration()); for (String each : obsoletePaths) { myManager.removeLogConsole(each); } }); } catch (InterruptedException | InvocationTargetException ignored) { } } if (!myLogFiles.isEmpty()) { myUpdateAlarm.cancelAndRequest(); } } | 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(); runConfiguration.createAdditionalTabComponents(myManager, startedProcess); } | 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(); if (shouldInclude.value(path)) { titleToPath.put(logFile.getName(), path); } } else { for (String path : paths) { if (shouldInclude.value(path)) { String title = new File(path).getName(); if (titleToPath.containsKey(title)) { title = path; } titleToPath.put(title, path); } } } for (String title : titleToPath.keySet()) { String path = titleToPath.get(title); assert path != null; myManager.addLogConsole(title, path, logFile.getCharset(), logFile.isSkipContent() ? new File(path).length() : 0, runConfiguration); } } | 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.