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] == null) { text[0] = ""; } setText(text, null); } Icon icon = null; Color foreground = myDefaultForeground; if (foreground == null) { myDefaultForeground = foreground = getForeground(); } if (value instanceof MessageNode node) { AntBuildMessageView.MessageType type = node.getType(); if (type == AntBuildMessageView.MessageType.BUILD) { icon = AntIcons.Build; } else if (type == AntBuildMessageView.MessageType.TARGET) { icon = AllIcons.Nodes.Target; } else if (type == AntBuildMessageView.MessageType.TASK) { icon = AntIcons.Task; } else if (type == AntBuildMessageView.MessageType.MESSAGE) { if (node.getPriority() == AntBuildMessageView.PRIORITY_WARN) { icon = AllIcons.General.Warning; foreground = ConsoleViewContentType.LOG_WARNING_OUTPUT.getAttributes().getForegroundColor(); } else if (node.getPriority() == AntBuildMessageView.PRIORITY_INFO) { icon = AllIcons.General.Information; foreground = ConsoleViewContentType.LOG_INFO_OUTPUT.getAttributes().getForegroundColor(); } else if (node.getPriority() == AntBuildMessageView.PRIORITY_VERBOSE) { icon = AntIcons.LogVerbose; foreground = ConsoleViewContentType.LOG_VERBOSE_OUTPUT.getAttributes().getForegroundColor(); } else { icon = AntIcons.LogDebug; foreground = ConsoleViewContentType.LOG_DEBUG_OUTPUT.getAttributes().getForegroundColor(); } } else if (type == AntBuildMessageView.MessageType.ERROR) { icon = AllIcons.General.Error; foreground = ConsoleViewContentType.LOG_ERROR_OUTPUT.getAttributes().getForegroundColor(); } } if (myUseAnsiColor) { setForeground(foreground); } setIcon(icon); }
|
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 null; String className = line.substring(atIndex + AT_ATR.length() + 1, lastDotIndex).trim(); int dollarIndex = className.indexOf('$'); if (dollarIndex >= 0){ className = className.substring(0, dollarIndex); } int rparenthIndex = line.indexOf(')', lparenthIndex); if (rparenthIndex < 0) return null; String fileAndLine = line.substring(lparenthIndex + 1, rparenthIndex).trim(); int colonIndex = fileAndLine.lastIndexOf(':'); if (colonIndex < 0) return null; String lineString = fileAndLine.substring(colonIndex + 1); String file = fileAndLine.substring(0, colonIndex); int lineNumber; try{ lineNumber = Integer.parseInt(lineString); } catch(NumberFormatException e){ return null; } return makePlaceInfo(className, file, lineNumber, project, lparenthIndex, rparenthIndex); }
|
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).findClass(className, GlobalSearchScope.allScope(project)); if (aClass == null) return; PsiFile file = aClass.getContainingFile(); String fileName1 = fileName.replace(File.separatorChar, '/'); int slashIndex = fileName1.lastIndexOf('/'); String shortFileName = slashIndex < 0 ? fileName : fileName.substring(slashIndex + 1); final String name = file.getName(); if (!name.equalsIgnoreCase(shortFileName)) return; info[0] = new PlaceInfo(file.getVirtualFile(), line, 1, lparenthIndex, rparenthIndex); } ); return info[0]; }
|
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_SUBSTRING)) { endIndex = message.length() - FAILED_SUBSTRING.length(); } else if (message.endsWith(FAILED_SUBSTRING_2)) { endIndex = message.length() - FAILED_SUBSTRING_2.length(); } else { return null; } } else { return null; } if (endIndex < startIndex) return null; final String possibleTestClassName = message.substring(startIndex, endIndex); final PsiFile[] psiFile = new PsiFile[1]; final PsiManager psiManager = PsiManager.getInstance(project); ApplicationManager.getApplication().runReadAction(() -> { PsiClass psiClass = JavaPsiFacade.getInstance(psiManager.getProject()).findClass(possibleTestClassName, GlobalSearchScope.allScope(project)); if (psiClass == null) return; PsiElement parent = psiClass.getParent(); if (parent instanceof PsiFile) { psiFile[0] = (PsiFile)parent; } }); if (psiFile[0] == null) return null; return new PlaceInfo(psiFile[0].getVirtualFile(), 1, 1, startIndex, endIndex - 1); }
|
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 == IdeaAntLogger2.INPUT_REQUEST) { try { InputRequestHandler.processInput(getProject(), reader, getProcessHandler()); } catch (IOException e) { MessagesEx.error(getProject(), e.getMessage()).showLater(); } } else { int priority = fixPriority(reader.readInt()); char contentType = reader.readChar(); String message = reader.readLimitedString(); if (id == IdeaAntLogger2.BUILD_END) { if (contentType == IdeaAntLogger2.EXCEPTION_CONTENT) { processTag(IdeaAntLogger2.EXCEPTION, message, priority); } } else { processTag(id, message, priority); } } }
|
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 DeferredActionsQueueImpl(); handler.getErr().setPacketDispatcher(parser, queue); return parser; }
|
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(() -> IdeFocusManager.getGlobalInstance().requestFocus(component, true)); repaint(); }
|
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 MessageView ijMessageView = MessageView.getInstance(project); Content[] contents = ijMessageView.getContentManager().getContents(); for (Content content : contents) { if (content.isPinned()) { continue; } AntBuildMessageView buildMessageView = content.getUserData(KEY); if (buildMessageView == null) { continue; } if (!antFile.equals(buildMessageView.getBuildFile().getVirtualFile())) { continue; } if (buildMessageView.isStopped()) { ijMessageView.getContentManager().removeContent(content, true); continue; } int result = Messages.showYesNoCancelDialog(AntBundle.message("ant.is.active.terminate.confirmation.text"), AntBundle.message("starting.ant.build.dialog.title"), Messages.getQuestionIcon()); switch (result) { case Messages.YES -> { // yes buildMessageView.stopProcess(); ijMessageView.getContentManager().removeContent(content, true); } case Messages.NO -> { // no } default -> { // cancel return null; } } } final AntBuildMessageView messageView = new AntBuildMessageView(project, buildFile, targets, additionalProperties); String contentName = buildFile.getPresentableName(); contentName = getBuildContentName() + " (" + contentName + ")"; final Content content = ContentFactory.getInstance().createContent(messageView.getComponent(), contentName, true); content.putUserData(KEY, messageView); ijMessageView.getContentManager().addContent(content); ijMessageView.getContentManager().setSelectedContent(content); content.setDisposer(() -> Disposer.dispose(messageView)); new CloseListener(content, ijMessageView.getContentManager(), project).setupListeners(); if (!buildFile.isRunInBackground()) { final ToolWindow tw = ToolWindowManager.getInstance(project).getToolWindow(ToolWindowId.MESSAGES_WINDOW); if (tw != null) { tw.activate(null, false); } } return messageView; }
|
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)); leftActionGroup.add(new CloseAction()); leftActionGroup.add(new PreviousOccurenceToolbarAction(this)); leftActionGroup.add(new NextOccurenceToolbarAction(this)); leftActionGroup.add(new ContextHelpAction(HelpID.ANT)); DefaultActionGroup rightActionGroup = new DefaultActionGroup(); rightActionGroup.add(new ChangeViewAction(this)); rightActionGroup.add(new VerboseAction(this)); rightActionGroup.add(CommonActionsManager.getInstance().createExpandAllAction(myTreeExpander, this)); rightActionGroup.add(CommonActionsManager.getInstance().createCollapseAllAction(myTreeExpander, this)); rightActionGroup.add(myTreeView.createToggleAutoscrollAction()); myLeftToolbar = ActionManager.getInstance().createActionToolbar(ActionPlaces.ANT_MESSAGES_TOOLBAR, leftActionGroup, false); myLeftToolbar.setTargetComponent(this); JPanel toolbarPanel = new JPanel(new GridLayout(1, 2, 2, 0)); toolbarPanel.add(myLeftToolbar.getComponent()); myRightToolbar = ActionManager.getInstance().createActionToolbar(ActionPlaces.ANT_MESSAGES_TOOLBAR, rightActionGroup, false); myRightToolbar.setTargetComponent(this); toolbarPanel.add(myRightToolbar.getComponent()); return toolbarPanel; }
|
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; } } return customizedMessage; }
|
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 index = fileAndLineNumber.lastIndexOf(':'); if (index != -1) { try { String lineNumberStr = fileAndLineNumber.substring(index + 1).trim(); int line = Integer.parseInt(lineNumberStr); String fileName = fileAndLineNumber.substring(0, index); final File file = new File(fileName); final VirtualFile result = ReadAction.compute(() -> { String url = VirtualFileManager.constructUrl(LocalFileSystem.PROTOCOL, file.getAbsolutePath().replace(File.separatorChar, '/')); return VirtualFileManager.getInstance().findFileByUrl(url); }); // convert separators text = fileName.replace('/', File.separatorChar) + ':' + line + text.substring(afterLineNumberIndex); return new AntMessage(MessageType.ERROR, priority, text, result, line, 1); } catch (NumberFormatException ignored) { } } } return new AntMessage(MessageType.ERROR, priority, text, null, 0, 0); }
|
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.process.is.active.terminate.confirmation.text"), AntBundle.message("close.ant.build.messages.dialog.title"), Messages.getQuestionIcon() ); if (result == 0) { // yes messageView.stopProcess(); myCloseAllowed = true; return true; } if (result == 1) { // no // close content and leave the process running myCloseAllowed = true; return true; } return false; }
|
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) { sb.append(seconds).append("s"); } return sb.toString(); }
|
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 AntOutputView firstView = myCurrentView; final AntOutputView secondView = firstView == myTreeView? myPlainTextView : myTreeView; command.execute(firstView); command.execute(secondView); } }
|
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 highlightEndOffset = textStartOffset + placeInfo.getLinkEndIndex() + 1; OpenFileHyperlinkInfo info = new OpenFileHyperlinkInfo(myProject, placeInfo.getFile(), placeInfo.getLine(), placeInfo.getColumn()); return new Result(highlightStartOffset, highlightEndOffset, info); }
|
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 == -1) { return null; } final String fileName = fileAndLineNumber.substring(0, index); String lineNumberStr = fileAndLineNumber.substring(index + 1).trim(); int lineNumber; try { lineNumber = Integer.parseInt(lineNumberStr); } catch (NumberFormatException e) { return null; } final VirtualFile file = LocalFileSystem.getInstance().findFileByPath(fileName.replace(File.separatorChar, '/')); if (file == null) { return null; } int textStartOffset = entireLength - line.length(); int highlightEndOffset = textStartOffset + afterLineNumberIndex; OpenFileHyperlinkInfo info = new OpenFileHyperlinkInfo(myProject, file, lineNumber - 1); return new Result(textStartOffset, highlightEndOffset, info); }
|
applyFilter
|
5,898
|
void () { throw new UnsupportedOperationException(); }
|
destroyProcessImpl
|
5,899
|
void () { throw new UnsupportedOperationException(); }
|
detachProcessImpl
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.