Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
5,800
void (JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if(value instanceof MessageNode messageNode) { setText(messageNode.getText(), messageNode.getTypeString() + messageNode.getPositionString()); } else { String[] text = new String[] {value.toString()}; if(text[0...
initComponent
5,801
String () { return "reference.dialogs.rundebug.AntRunConfiguration"; }
getHelpTopic
5,802
AntRunConfigurationType () { return ConfigurationTypeUtil.findConfigurationType(AntRunConfigurationType.class); }
getInstance
5,803
RunConfiguration (@NotNull Project project) { return new AntRunConfiguration(project, this); }
createTemplateConfiguration
5,804
VirtualFile () { return myFile; }
getFile
5,805
int () { return myLine; }
getLine
5,806
int () { return myColumn; }
getColumn
5,807
int () { return myLinkStartIndex; }
getLinkStartIndex
5,808
int () { return myLinkEndIndex; }
getLinkEndIndex
5,809
PlaceInfo (Project project, String line) { int atIndex = line.indexOf("\t"+ AT_ATR + " "); if (atIndex < 0) return null; int lparenthIndex = line.indexOf('(', atIndex); if (lparenthIndex < 0) return null; int lastDotIndex = line.lastIndexOf('.', lparenthIndex); if (lastDotIndex < 0 || lastDotIndex < atIndex) return nul...
parseStackLine
5,810
PlaceInfo (final @NlsSafe String className, final @NlsSafe String fileName, final int line, final Project project, final int lparenthIndex, final int rparenthIndex) { final PlaceInfo[] info = new PlaceInfo[1]; ApplicationManager.getApplication().runReadAction( () -> { PsiClass aClass = JavaPsiFacade.getInstance(project...
makePlaceInfo
5,811
PlaceInfo (final Project project, String message) { int startIndex; int endIndex; if (message.startsWith(RUNNING_SUBSTRING)) { startIndex = RUNNING_SUBSTRING.length(); endIndex = message.length(); } else if (message.startsWith(TEST_SUBSTRING)) { startIndex = TEST_SUBSTRING.length(); if (message.endsWith(FAILED_SUBSTRIN...
parseJUnitMessage
5,812
AntBuildMessageView () { return myMessageView; }
getMessageView
5,813
AntBuildFile () { return myBuildFile; }
getBuildFile
5,814
void (Printable printable) { printable.printOn(null); }
processOutput
5,815
void (String packet) { SegmentReader reader = new SegmentReader(packet); int index = reader.readInt(); if (myLastPacketIndex + 1 < index) { LOG.error("last: " + myLastPacketIndex + " current: " + index); } if (myLastPacketIndex + 1 > index) return; myLastPacketIndex++; char id = reader.readChar(); if (id == IdeaAntLogg...
processPacket
5,816
void (@NlsSafe String text, ConsoleViewContentType contentType) { if (text.isEmpty()) return; if (myLastPacketIndex != -1) return; if (contentType == ConsoleViewContentType.ERROR_OUTPUT) readErrorOutput(text); }
onOutput
5,817
OutputParser (final Project myProject, AntProcessHandler handler, final AntBuildMessageView errorView, final ProgressIndicator progress, final AntBuildFile buildFile) { final OutputParser2 parser = new OutputParser2(myProject, handler, errorView, progress, buildFile.getName()); final DeferredActionsQueue queue = new De...
attachParser
5,818
void (@NotNull ProcessEvent event) { Disposer.dispose(myOut); Disposer.dispose(myErr); }
processTerminated
5,819
Reader () { return myOut.createReader(); }
createProcessOutReader
5,820
Reader () { return myErr.createReader(); }
createProcessErrReader
5,821
Extractor () { return myErr; }
getErr
5,822
Extractor () { return myOut; }
getOut
5,823
boolean () { return isTreeView(); }
canCollapse
5,824
boolean () { return isTreeView(); }
canExpand
5,825
void () { AntBuildMessageView.this.collapseAll(); }
collapseAll
5,826
void () { AntBuildMessageView.this.expandAll(); }
expandAll
5,827
void () { Disposer.dispose(myAlarm); myBuildFile = null; myPlainTextView.dispose(); }
dispose
5,828
void () { showAntView(!isTreeView()); if (myBuildFile != null) { myBuildFile.setTreeView(isTreeView()); } }
changeView
5,829
boolean () { return myCurrentView == myTreeView; }
isTreeView
5,830
void (boolean verbose) { changeDetalizationLevel(verbose ? PRIORITY_DEBUG : PRIORITY_INFO); if (myBuildFile != null) { myBuildFile.setVerboseMode(verbose); } }
setVerboseMode
5,831
boolean () { return myPriorityThreshold == PRIORITY_DEBUG; }
isVerboseMode
5,832
void () { final int processedCount = myCommandsProcessedCount; for (int i = 0; i < processedCount; i++) { LogCommand command = myLog.get(i); proceedOneCommand(command); } flushDelayedMessages(); }
doFlush
5,833
void (boolean treeView) { final AntOutputView newView = getOutputView(!treeView); myCurrentView = newView; myCardLayout.show(myContentPanel, newView.getId()); JComponent component = IdeFocusTraversalPolicy.getPreferredFocusedComponent(myMessagePanel); IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() -> Ide...
showAntView
5,834
AntOutputView (boolean isText) { return isText ? myPlainTextView : myTreeView; }
getOutputView
5,835
AntBuildFileBase () { return myBuildFile; }
getBuildFile
5,836
AntBuildMessageView (Project project, AntBuildFileBase buildFile, List<String> targets, List<BuildFileProperty> additionalProperties) { final VirtualFile antFile = buildFile.getVirtualFile(); if (!LOG.assertTrue(antFile != null)) { return null; } // check if there are running instances of the same build file MessageVie...
openBuildMessageView
5,837
void () { if (myParsingThread != null) { myParsingThread.stopProcess(); } myIsAborted = true; myLeftToolbar.updateActionsImmediately(); myRightToolbar.updateActionsImmediately(); }
stopProcess
5,838
boolean () { return myParsingThread == null || myParsingThread.isStopped(); }
isStopped
5,839
boolean () { return myParsingThread == null || myParsingThread.isTerminateInvoked() || isStopped(); }
isStoppedOrTerminateRequested
5,840
void () { MessageView messageView = MessageView.getInstance(myProject); Content[] contents = messageView.getContentManager().getContents(); for (Content content : contents) { if (content.getComponent() == this) { messageView.getContentManager().removeContent(content, true); return; } } }
close
5,841
JPanel () { RunAction runAction = new RunAction(this); runAction.registerCustomShortcutSet(CommonShortcuts.getRerun(), this); DefaultActionGroup leftActionGroup = new DefaultActionGroup(); leftActionGroup.add(runAction); leftActionGroup.add(new PauseOutputAction(this)); leftActionGroup.add(new StopAction(this)); leftAc...
createToolbarPanel
5,842
void (@NotNull AnActionEvent e) { close(); }
actionPerformed
5,843
AntMessage (final @Nls String text, @AntMessage.Priority int priority) { AntMessage customizedMessage = null; for (AntMessageCustomizer customizer : AntMessageCustomizer.EP_NAME.getExtensionList()) { customizedMessage = customizer.createCustomizedMessage(text, priority); if (customizedMessage != null) { break; } } retu...
getCustomizedMessage
5,844
void (@AntMessage.Priority int priority) { if (priority == PRIORITY_ERR) { myErrorCount++; } else if (priority == PRIORITY_WARN) { myWarningCount++; } }
updateErrorAndWarningCounters
5,845
Object (@NotNull String dataId) { Object data = myCurrentView.getData(dataId); if (data != null) { return data; } if (PlatformCoreDataKeys.HELP_ID.is(dataId)) { return HelpID.ANT; } if (PlatformDataKeys.TREE_EXPANDER.is(dataId)) { return myTreeExpander; } return null; }
getData
5,846
AntMessage (@AntMessage.Priority int priority, @NlsSafe String text) { text = StringUtil.trimStart(text, FILE_PREFIX); int afterLineNumberIndex = text.indexOf(": "); // end of file_name_and_line_number sequence if (afterLineNumberIndex != -1) { String fileAndLineNumber = text.substring(0, afterLineNumberIndex); int ind...
createErrorMessage
5,847
void (@NotNull VirtualFile file) { if (ApplicationManager.getApplication().isDispatchThread()) { ApplicationManager.getApplication().executeOnPooledThread(() -> doQueueToWolf(file)); } else { doQueueToWolf(file); } }
queueToWolf
5,848
void (@NotNull VirtualFile file) { ReadAction.run(() -> { if (!myProject.isDisposed()) { WolfTheProblemSolver.getInstance(myProject).queue(file); } }); }
doQueueToWolf
5,849
JComponent () { return this; }
getComponent
5,850
void () { myTreeView.collapseAll(); }
collapseAll
5,851
void () { myTreeView.expandAll(); }
expandAll
5,852
void () { myContentManager.addContentManagerListener(this); ProjectManager.getInstance().addProjectManagerListener(myProject, this); Disposer.register(myContent, () -> { myContentManager.removeContentManagerListener(this); ProjectManager.getInstance().removeProjectManagerListener(myProject, this); }); }
setupListeners
5,853
void (@NotNull ContentManagerEvent event) { if (event.getContent() == myContent) { AntBuildMessageView buildMessageView = myContent.getUserData(KEY); if (!myCloseAllowed) { buildMessageView.stopProcess(); } myContent.release(); myContent = null; } }
contentRemoved
5,854
void (@NotNull ContentManagerEvent event) { if (event.getContent() == myContent) { boolean canClose = closeQuery(); if (!canClose) { event.consume(); } } }
contentRemoveQuery
5,855
void (@NotNull Project project) { if (myContent != null) { myContentManager.removeContent(myContent, true); } }
projectClosed
5,856
boolean (@NotNull Project project) { return closeQuery(); }
canClose
5,857
boolean () { if (myContent == null) { return true; } final AntBuildMessageView messageView = myContent.getUserData(KEY); if (messageView == null || messageView.isStoppedOrTerminateRequested()) { return true; } if (myCloseAllowed) { return true; } final int result = Messages.showYesNoCancelDialog( AntBundle.message("ant...
closeQuery
5,858
int () { return myPriority; }
getPriority
5,859
AntMessage () { return myMessage; }
getMessage
5,860
void (AntOutputView outputView) { outputView.finishTask(); }
execute
5,861
List<String> () { return myTargets; }
getTargets
5,862
List<BuildFileProperty> () { return myAdditionalProperties; }
getAdditionalProperties
5,863
int () { return myErrorCount; }
getErrorCount
5,864
int () { return myWarningCount; }
getWarningCount
5,865
void (boolean scroll) { DumbService.getInstance(myProject).runWhenSmart(() -> { if (!myIsOutputPaused) { new OutputFlusher().doFlush(); if (scroll) { myTreeView.scrollToLastMessage(); } } }); }
flushWhenSmart
5,866
String (long seconds) { if (seconds == 0) { return "0s"; } final StringBuilder sb = new StringBuilder(); if (seconds >= 3600) { sb.append(seconds / 3600).append("h "); seconds %= 3600; } if (seconds >= 60 || sb.length() > 0) { sb.append(seconds / 60).append("m "); seconds %= 60; } if (seconds > 0 || sb.length() > 0) { ...
formatBuildTime
5,867
boolean () { return myIsOutputPaused; }
isOutputPaused
5,868
void () { int currentProcessedCount = myCommandsProcessedCount; while (currentProcessedCount < myLog.size()) { final LogCommand command = myLog.get(currentProcessedCount++); proceedOneCommand(command); } myCommandsProcessedCount = currentProcessedCount; flushDelayedMessages(); }
doFlush
5,869
void (LogCommand command) { if (command.getPriority() > myPriorityThreshold) { return; } // proceed messages in a special way if (command instanceof AddMessageCommand addMessageCommand) { myDelayedMessages.add(addMessageCommand.getMessage()); } else { flushDelayedMessages(); // message type changed -> flush final AntOu...
proceedOneCommand
5,870
void () { if (!myDelayedMessages.isEmpty()) { final AntMessage[] messages = myDelayedMessages.toArray(new AntMessage[0]); myDelayedMessages.clear(); myTreeView.addMessages(messages); myPlainTextView.addMessages(messages); } }
flushDelayedMessages
5,871
String () { return myTreeView.getNextOccurenceActionName(); }
getNextOccurenceActionName
5,872
String () { return myTreeView.getPreviousOccurenceActionName(); }
getPreviousOccurenceActionName
5,873
OccurenceInfo () { return isTreeView() ? myTreeView.goNextOccurence() : null; }
goNextOccurence
5,874
OccurenceInfo () { return isTreeView() ? myTreeView.goPreviousOccurence() : null; }
goPreviousOccurence
5,875
boolean () { return isTreeView() && myTreeView.hasNextOccurence(); }
hasNextOccurence
5,876
boolean () { return isTreeView() && myTreeView.hasPreviousOccurence(); }
hasPreviousOccurence
5,877
boolean (@NotNull String executorId, @NotNull RunProfile profile) { return DefaultRunExecutor.EXECUTOR_ID.equals(executorId) && profile instanceof AntRunConfiguration; }
canRun
5,878
void (Project project, @NotNull @NlsContexts.DialogTitle String title) { Messages.showInfoMessage(project, getMessage(), title); }
showMessage
5,879
void () { Disposer.dispose(myConsole); }
dispose
5,880
JComponent () { return myConsole.getComponent(); }
getComponent
5,881
Object (AntMessage message) { print(message.getText() + "\n", ProcessOutputTypes.STDOUT); return null; }
addMessage
5,882
void (String text, Key type) { myProcessHandler.notifyTextAvailable(text, type); }
print
5,883
void (AntMessage[] messages) { for (AntMessage message : messages) { addMessage(message); } }
addMessages
5,884
void (AntMessage message, @NlsSafe String url) { if (message.getLine() > 0) { String msg = TreeView.printMessage(message, url); print(msg, ProcessOutputTypes.STDOUT); } print(message.getText(), ProcessOutputTypes.STDOUT); }
addJavacMessage
5,885
void (AntMessage exception, boolean showFullTrace) { String text = exception.getText(); if (!showFullTrace) { int index = text.indexOf("\r\n"); if (index != -1) { text = text.substring(0, index) + "\n"; } } print(text, ProcessOutputTypes.STDOUT); }
addException
5,886
void () { myConsole.clear(); }
clearAllMessages
5,887
void (AntMessage message) { print(myCommandLine + "\n", ProcessOutputTypes.SYSTEM); addMessage(message); }
startBuild
5,888
void (AntMessage message) { print(myCommandLine + "\n", ProcessOutputTypes.SYSTEM); addMessage(message); }
buildFailed
5,889
void (AntMessage message) { addMessage(message); }
startTarget
5,890
void (AntMessage message) { addMessage(message); }
startTask
5,891
void (@Nls String messageText) { print("\n" + messageText + "\n", ProcessOutputTypes.SYSTEM); }
finishBuild
5,892
void () { }
finishTarget
5,893
void () { }
finishTask
5,894
Object (@NotNull @NonNls String dataId) { return null; }
getData
5,895
void (@NlsSafe String commandLine) { myCommandLine = commandLine; }
setBuildCommandLine
5,896
Result (@NotNull String line, int entireLength) { HyperlinkUtil.PlaceInfo placeInfo = HyperlinkUtil.parseJUnitMessage(myProject, line); if (placeInfo == null) { return null; } int textStartOffset = entireLength - line.length(); int highlightStartOffset = textStartOffset + placeInfo.getLinkStartIndex(); int highlightEnd...
applyFilter
5,897
Result (@NotNull String line, int entireLength) { int afterLineNumberIndex = line.indexOf(": "); // end of file_name_and_line_number sequence if (afterLineNumberIndex == -1) { return null; } String fileAndLineNumber = line.substring(0, afterLineNumberIndex); int index = fileAndLineNumber.lastIndexOf(':'); if (index == ...
applyFilter
5,898
void () { throw new UnsupportedOperationException(); }
destroyProcessImpl
5,899
void () { throw new UnsupportedOperationException(); }
detachProcessImpl