Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
265,900 | void (@NotNull AnActionEvent e) { e.getPresentation().setEnabled(isEnabled(e.getDataContext())); } | update |
265,901 | boolean (DataContext dataContext) { if (myModel == null) { return false; } if (CommonDataKeys.PROJECT.getData(dataContext) == null) { return false; } return !myModel.getRoot().isInProgress(); } | isEnabled |
265,902 | void (@NotNull AnActionEvent e) { final Project project = e.getProject(); LOG.assertTrue(project != null); final ExportTestResultsConfiguration config = ExportTestResultsConfiguration.getInstance(project); final String name = ExecutionBundle.message("export.test.results.filename", PathUtil.suggestFileName(myRunConfigur... | actionPerformed |
265,903 | void (@NotNull ProgressIndicator indicator) { indicator.setIndeterminate(true); try { if (!writeOutputFile(config, outputFile)) return; } catch (IOException | SAXException | TransformerException ex) { LOG.warn(ex); showBalloon(project, MessageType.ERROR, ExecutionBundle.message("export.test.results.failed", ex.getMessa... | run |
265,904 | void (HyperlinkEvent e) { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) { openEditorOrBrowser(result.get(), project, config.getExportFormat() == ExportTestResultsConfiguration.ExportFormat.Xml); } } | hyperlinkUpdate |
265,905 | File ( final @NotNull ExportTestResultsConfiguration config, final @NotNull Project project, final @NotNull String filename) { final File outputFolder; final String outputFolderPath = config.getOutputFolder(); if (!StringUtil.isEmptyOrSpaces(outputFolderPath)) { if (FileUtil.isAbsolute(outputFolderPath)) { outputFolder... | getOutputFile |
265,906 | void (final VirtualFile result, final Project project, final boolean editor) { ApplicationManager.getApplication().invokeLater(() -> { if (editor) { FileEditorManager.getInstance(project).openFile(result, true); } else { BrowserUtil.browse(result); } }); } | openEditorOrBrowser |
265,907 | void (final Project project, final MessageType type, final @NlsContexts.PopupContent String text, final @Nullable HyperlinkListener listener) { ApplicationManager.getApplication().invokeLater(() -> { if (project.isDisposed()) return; if (ToolWindowManager.getInstance(project).getToolWindow(myToolWindowId) != null) { To... | showBalloon |
265,908 | void (ChangeEvent e) { revalidate(); } | stateChanged |
265,909 | void () { myForm.apply(myConfig); super.doOKAction(); } | doOKAction |
265,910 | JComponent () { return myForm.getPreferredFocusedComponent(); } | getPreferredFocusedComponent |
265,911 | void () { String message = myForm.validate(); myForm.showMessage(message); setOKActionEnabled(message == null); } | revalidate |
265,912 | JComponent () { return myForm.getContentPane(); } | createCenterPanel |
265,913 | String () { return "export.test.results"; } | getDimensionServiceKey |
265,914 | String () { return "reference.settings.ide.settings.export.test.results"; } | getHelpId |
265,915 | String () { return myForm.getFileName(); } | getFileName |
265,916 | String () { return myExtension; } | getDefaultExtension |
265,917 | String () { return myExportFormat.name(); } | getExportFormat |
265,918 | void (String exportFormat) { try { myExportFormat = ExportFormat.valueOf(exportFormat); } catch (IllegalArgumentException e) { myExportFormat = ExportFormat.BundledTemplate; } } | setExportFormat |
265,919 | ExportTestResultsConfiguration (Project project) { return project.getService(ExportTestResultsConfiguration.class); } | getInstance |
265,920 | State () { return myState; } | getState |
265,921 | void (@NotNull State state) { myState = state; } | loadState |
265,922 | String () { return myState.outputFolder; } | getOutputFolder |
265,923 | void (String outputFolder) { myState.outputFolder = outputFolder; } | setOutputFolder |
265,924 | boolean () { return myState.openResultsInEditor; } | isOpenResults |
265,925 | void (boolean openResultsInEditor) { myState.openResultsInEditor = openResultsInEditor; } | setOpenResults |
265,926 | ExportFormat () { return myState.myExportFormat; } | getExportFormat |
265,927 | void (ExportFormat exportFormat) { myState.myExportFormat = exportFormat; } | setExportFormat |
265,928 | String () { return myState.userTemplatePath; } | getUserTemplatePath |
265,929 | void (String userTemplatePath) { myState.userTemplatePath = userTemplatePath; } | setUserTemplatePath |
265,930 | void (Map<String, Integer> counts, String status) { Integer count = counts.get(status); counts.put(status, count != null ? count + 1 : 1); } | increment |
265,931 | void (@NotNull String text, @NotNull ConsoleViewContentType contentType) { ProgressManager.checkCanceled(); if (contentType != lastType.get()) { if (buffer.length() > 0) { try { writeOutput(lastType.get(), buffer); } catch (SAXException e) { error.set(e); } } lastType.set(contentType); } if (bufferSize <= 0 || buffer.l... | print |
265,932 | void (@NotNull Printable printable) { } | onNewAvailable |
265,933 | void (@NotNull String text, HyperlinkInfo info) { if (info instanceof DiffHyperlink.DiffHyperlinkInfo) { final DiffHyperlink diffHyperlink = ((DiffHyperlink.DiffHyperlinkInfo)info).getPrintable(); try { HashMap<String, String> attributes = new HashMap<>(); attributes.put(EXPECTED, JDOMUtil.removeControlChars(diffHyperl... | printHyperlink |
265,934 | void () { } | mark |
265,935 | String (AbstractTestProxy node) { int magnitude = node.getMagnitude(); // TODO enumeration! return switch (magnitude) { case 0, 2, 4 -> STATUS_SKIPPED; case 5 -> STATUS_IGNORED; case 1 -> STATUS_PASSED; case 6 -> STATUS_FAILED; case 8 -> STATUS_ERROR; default -> node.isPassed() ? STATUS_PASSED : STATUS_FAILED; }; } | getStatusString |
265,936 | void (ActionEvent e) { updateOnFormatChange(); } | actionPerformed |
265,937 | boolean (@Nullable VirtualFile file) { return file != null && ("xsl".equalsIgnoreCase(file.getExtension()) || "xslt".equalsIgnoreCase(file.getExtension())); } | isFileSelectable |
265,938 | void (@NotNull DocumentEvent e) { updateOpenInLabel(); } | textChanged |
265,939 | void () { myEventDispatcher.getMulticaster().stateChanged(new ChangeEvent(this)); } | stateChanged |
265,940 | void () { myOpenExportedFileCb.setText(ExecutionBundle.message( shouldOpenInBrowser(myFileNameField.getText()) ? "export.test.results.open.browser" : "export.test.results.open.editor")); } | updateOpenInLabel |
265,941 | boolean (String filename) { return StringUtil.isNotEmpty(filename) && (filename.endsWith(".html") || filename.endsWith(".htm")); } | shouldOpenInBrowser |
265,942 | void () { if (getExportFormat() == ExportTestResultsConfiguration.ExportFormat.UserTemplate) { myCustomTemplateField.setEnabled(true); IdeFocusManager.findInstanceByComponent(myContentPane).requestFocus(myCustomTemplateField.getChildComponent(), true); } else { myCustomTemplateField.setEnabled(false); } String filename... | updateOnFormatChange |
265,943 | void (ExportTestResultsConfiguration config) { config.setExportFormat(getExportFormat()); config.setUserTemplatePath(FileUtil.toSystemIndependentName(myCustomTemplateField.getText())); config.setOutputFolder(FileUtil.toSystemIndependentName(myFolderField.getText())); config.setOpenResults(myOpenExportedFileCb.isSelecte... | apply |
265,944 | JComponent () { return myContentPane; } | getContentPane |
265,945 | void (ChangeListener changeListener) { myEventDispatcher.addListener(changeListener); } | addChangeListener |
265,946 | void (@Nullable @NlsContexts.Label String message) { myMessageLabel.setText(message); myMessageLabel.setVisible(message != null); } | showMessage |
265,947 | JComponent () { return myFileNameField; } | getPreferredFocusedComponent |
265,948 | String () { return myFileNameField.getText(); } | getFileName |
265,949 | void (@NotNull AbstractTestProxy testProxy) { AbstractTestProxy current = testProxy; do { DefaultMutableTreeNode node = getNodeForElement(current); if (node != null) { JTree tree = getTree(); ((DefaultTreeModel)tree.getModel()).nodeChanged(node); } current = current.getParent(); } while (current != null); } | repaintWithParents |
265,950 | ProgressIndicator () { return new StatusBarProgress(); } | createProgressIndicator |
265,951 | boolean () { return false; } | isSmartExpand |
265,952 | void (TestFrameworkRunningModel model) { setNodeDescriptorComparator(model.createComparator()); queueUpdate(); } | setTestsComparator |
265,953 | ConsoleView () { return new TestsConsoleViewImpl(getProject(), getScope(), isViewer(), isUsePredefinedMessageFilter()); } | createConsole |
265,954 | int () { return (int) ((System.currentTimeMillis() % MOVIE_TIME) / FRAME_TIME); } | getCurrentFrameIndex |
265,955 | Icon () { return FRAMES[getCurrentFrameIndex()]; } | getCurrentFrame |
265,956 | AbstractTestProxy () { return myCurrentTestCase; } | getCurrentTestCase |
265,957 | void () { if (myCurrentTestCase != null) { final long time = System.currentTimeMillis(); // optimization: // we shouldn't repaint if this frame was painted in current interval if (time - myLastInvocationTime >= FRAME_TIME) { repaintSubTree(); myLastInvocationTime = time; } } scheduleRepaint(); } | run |
265,958 | void (@Nullable final AbstractTestProxy currentTestCase) { myCurrentTestCase = currentTestCase; scheduleRepaint(); } | setCurrentTestCase |
265,959 | void () { myCurrentTestCase = null; myAlarm.cancelAllRequests(); } | stopMovie |
265,960 | void () { ThreadingAssertions.assertEventDispatchThread(); AbstractTestProxy testProxy = myCurrentTestCase; if (testProxy != null) { myTreeBuilder.repaintWithParents(testProxy); } } | repaintSubTree |
265,961 | ConsoleState (@NotNull ConsoleViewImpl console, @NotNull ProcessHandler processHandler) { return new ConsoleViewRunningState(console, processHandler, this, false, !viewer); } | attachTo |
265,962 | int () { return myTestProxy.isLeaf() ? 10 : 5; } | getWeight |
265,963 | String () { return myTestProxy.getName(); } | getName |
265,964 | boolean () { return !getElement().isLeaf(); } | expandOnDoubleClick |
265,965 | boolean () { return true; } | update |
265,966 | T () { return myTestProxy; } | getElement |
265,967 | Dimension () { final Dimension preferredSize = super.getPreferredSize(); final int originalHeight = myOriginalHeightComponent.getPreferredSize().height; if (preferredSize.height > originalHeight) return preferredSize; return new Dimension(preferredSize.width, originalHeight); } | getPreferredSize |
265,968 | SameHeightPanel (final JComponent component, final JComponent original) { final SameHeightPanel panel = new SameHeightPanel(new BorderLayout(), original); panel.add(component, BorderLayout.CENTER); return panel; } | wrap |
265,969 | void (final int testsTotal, final int finishedTestsCount, final int failuresCount, final int ignoredTestsCount, final Long duration, final long endTime) { UIUtil.invokeLaterIfNeeded(() -> { doFormatTestMessage(testsTotal, finishedTestsCount, failuresCount, ignoredTestsCount, duration, endTime); updateWarningVisibility(... | formatTestMessage |
265,970 | void () { myWarning.setVisible(myState.getCharSequence(false).length() > 0 && StringUtil.isNotEmpty(myWarning.getText())); } | updateWarningVisibility |
265,971 | void (int testsTotal, int finishedTestsCount, int failuresCount, int ignoredTestsCount, Long duration, long endTime) { myState.clear(); if (testsTotal == 0) { testsTotal = finishedTestsCount; if (testsTotal == 0) return; } int passedCount = finishedTestsCount - failuresCount - ignoredTestsCount; if (duration == null ||... | doFormatTestMessage |
265,972 | void (int failuresCount, int ignoredTestsCount, int passedCount, int testsTotal) { boolean something = false; if (failuresCount > 0) { myState.append(TestRunnerBundle.message("tests.result.prefix") + " ", ERROR_ATTRIBUTES); myState.append(TestRunnerBundle.message("tests.result.failed.count", failuresCount), ERROR_ATTRI... | formatCounts |
265,973 | void (boolean flag) { myProgressPanel.add(myProgressBar, BorderLayout.NORTH); myProgressBar.setIndeterminate(flag); } | setIndeterminate |
265,974 | void (@Nullable Supplier<? extends Icon> toolbarIconSupplier) { EdtInvocationManager.getInstance().invokeLater(() -> { myProgressPanel.remove(myProgressBar); if (toolbarIconSupplier != null) { myState.setIcon(toolbarIconSupplier.get()); } }); } | onTestsDone |
265,975 | void (Color color) { myProgressBar.setForeground(color); } | setStatusColor |
265,976 | Color () { return myProgressBar.getForeground(); } | getStatusColor |
265,977 | void (double v) { int fraction = (int)(v * 100); myProgressBar.setValue(fraction); } | setFraction |
265,978 | void (@Nls String progressStatus_text) { UIUtil.invokeLaterIfNeeded(() -> { myState.clear(); myState.append(progressStatus_text); myWarning.setVisible(!progressStatus_text.isEmpty()); }); } | setText |
265,979 | String () { return myState.toString(); } | getStateText |
265,980 | void (@Nls @NotNull String suffix) { myWarning.setText(suffix); updateWarningVisibility(); } | setWarning |
265,981 | void () { myTestResultsPanel = createTestResultsPanel(); myTestResultsPanel.initUI(); Disposer.register(this, myTestResultsPanel); } | initUI |
265,982 | void (final @NotNull ProcessHandler processHandler) { myConsole.attachToProcess(processHandler); } | attachToProcess |
265,983 | void (@NotNull final String text, @NotNull final ConsoleViewContentType contentType) { printNew(printer -> printer.print(text, contentType)); } | print |
265,984 | void () { } | allowHeavyFilters |
265,985 | void () { myConsole.clear(); } | clear |
265,986 | void (final int offset) { myConsole.scrollTo(offset); } | scrollTo |
265,987 | void (final boolean value) { if (myPrinter != null) { myPrinter.pause(value); } } | setOutputPaused |
265,988 | boolean () { //noinspection SimplifiableConditionalExpression return myPrinter == null ? true : myPrinter.isPaused(); } | isOutputPaused |
265,989 | boolean () { return myConsole.hasDeferredOutput(); } | hasDeferredOutput |
265,990 | void (@NotNull final Runnable runnable) { myConsole.performWhenNoDeferredOutput(runnable); } | performWhenNoDeferredOutput |
265,991 | void (@NotNull final String helpId) { myConsole.setHelpId(helpId); } | setHelpId |
265,992 | void (@NotNull final Filter filter) { myConsole.addMessageFilter(filter); } | addMessageFilter |
265,993 | void (@NotNull final String hyperlinkText, final HyperlinkInfo info) { printNew(new HyperLink(hyperlinkText, info)); } | printHyperlink |
265,994 | int () { return myConsole.getContentSize(); } | getContentSize |
265,995 | boolean () { return myPrinter != null && myPrinter.canPause() && myConsole.canPause(); } | canPause |
265,996 | JComponent () { return myTestResultsPanel; } | getComponent |
265,997 | JComponent () { return myTestResultsPanel; } | getPreferredFocusableComponent |
265,998 | void () { myPrinter = null; myProperties = null; myConsole = null; } | dispose |
265,999 | void (@NotNull final ChangeListener listener, @NotNull final Disposable parent) { if (myConsole instanceof ObservableConsoleView) { ((ObservableConsoleView)myConsole).addChangeListener(listener, parent); } } | addChangeListener |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.