Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
5,900 | boolean () { return false; } | detachIsDefault |
5,901 | OutputStream () { return null; } | getProcessInput |
5,902 | RunConfiguration () { final AntRunConfiguration configuration = (AntRunConfiguration)super.clone(); configuration.mySettings = mySettings.copy(); return configuration; } | clone |
5,903 | String () { AntBuildTarget target = getTarget(); return target == null ? null : target.getDisplayName(); } | suggestedName |
5,904 | RunProfileState (@NotNull Executor executor, @NotNull ExecutionEnvironment env) { return new AntRunProfileState(env); } | getState |
5,905 | AntBuildTarget () { return GlobalAntConfiguration.getInstance().findTarget(getProject(), mySettings.myFileUrl, mySettings.myTargetName); } | getTarget |
5,906 | List<BuildFileProperty> () { return Collections.unmodifiableList(mySettings.myProperties); } | getProperties |
5,907 | boolean (AntBuildTarget target) { VirtualFile virtualFile = target.getModel().getBuildFile().getVirtualFile(); if (virtualFile == null) { return false; } mySettings.myFileUrl = virtualFile.getUrl(); mySettings.myTargetName = target.getName(); return true; } | acceptSettings |
5,908 | String () { return myTargetName + "@" + myFileUrl; } | toString |
5,909 | AntSettings () { final AntSettings copy = new AntSettings(myFileUrl, myTargetName); copyProperties(myProperties, copy.myProperties); return copy; } | copy |
5,910 | void () { myTextField.setText(""); if (myFileUrl != null && myTargetName != null) { myTextField.setText(myTargetName); } myPropTable.refreshValues(); fireEditorStateChanged(); } | updateUI |
5,911 | void (@NotNull RunConfiguration s) { final AntRunConfiguration config = (AntRunConfiguration)s; myFileUrl = config.mySettings.myFileUrl; myTargetName = config.mySettings.myTargetName; myPropTable.setValues(config.mySettings.myProperties); updateUI(); } | resetEditorFrom |
5,912 | void (@NotNull RunConfiguration s) { final AntRunConfiguration config = (AntRunConfiguration)s; config.mySettings.myFileUrl = myFileUrl; config.mySettings.myTargetName = myTargetName; copyProperties(ContainerUtil.filter(myPropTable.getElements(), property -> !myPropTable.isEmpty(property)), config.mySettings.myProperties); } | applyEditorTo |
5,913 | JComponent () { myTextField = new ExtendableTextField().addBrowseExtension(myAction, this); final JPanel panel = new JPanel(new BorderLayout()); panel.add(LabeledComponent.create(myTextField, AntBundle.message("label.ant.run.configuration.target.name"), BorderLayout.WEST), BorderLayout.NORTH); String propertiesTableName = AntBundle.message("label.table.name.ant.properties"); final LabeledComponent<JComponent> tableComponent = LabeledComponent.create(myPropTable.getComponent(), propertiesTableName); tableComponent.setBorder(BorderFactory.createEmptyBorder(10, 0, 0, 0)); panel.add(tableComponent, BorderLayout.CENTER); return panel; } | createEditor |
5,914 | ListTableModel () { final ColumnInfo nameColumn = new TableColumn(AntBundle.message("column.name.ant.configuration.property.name")) { @Nullable @Override public String valueOf(BuildFileProperty property) { return property.getPropertyName(); } @Override public void setValue(BuildFileProperty property, String value) { property.setPropertyName(value); } }; final ColumnInfo valueColumn = new TableColumn(AntBundle.message("column.name.ant.configuration.property.value")) { @Nullable @Override public String valueOf(BuildFileProperty property) { return property.getPropertyValue(); } @Override public void setValue(BuildFileProperty property, String value) { property.setPropertyValue(value); } }; return new ListTableModel(nameColumn, valueColumn); } | createListModel |
5,915 | String (BuildFileProperty property) { return property.getPropertyName(); } | valueOf |
5,916 | void (BuildFileProperty property, String value) { property.setPropertyName(value); } | setValue |
5,917 | String (BuildFileProperty property) { return property.getPropertyValue(); } | valueOf |
5,918 | void (BuildFileProperty property, String value) { property.setPropertyValue(value); } | setValue |
5,919 | BuildFileProperty () { return new BuildFileProperty(); } | createElement |
5,920 | boolean (BuildFileProperty element) { return StringUtil.isEmpty(element.getPropertyName()) && StringUtil.isEmpty(element.getPropertyValue()); } | isEmpty |
5,921 | BuildFileProperty (BuildFileProperty p) { return p.clone(); } | cloneElement |
5,922 | boolean (BuildFileProperty selection) { return true; } | canDeleteElement |
5,923 | List<BuildFileProperty> () { return super.getElements(); } | getElements |
5,924 | boolean (BuildFileProperty property) { return true; } | isCellEditable |
5,925 | String (BuildFileProperty element) { return null; } | getDescription |
5,926 | void (final Iterable<BuildFileProperty> from, final List<? super BuildFileProperty> to) { to.clear(); for (BuildFileProperty p : from) { to.add(p.clone()); } } | copyProperties |
5,927 | void (PathsList pathsList) { final String ideaRtJarPath = getIdeaRtJarPath(); if (Boolean.getBoolean(IDEA_PREPEND_RTJAR)) { pathsList.addFirst(ideaRtJarPath); } else { pathsList.addTail(ideaRtJarPath); } } | addRtJar |
5,928 | String () { final Class<?> aClass = CommandLineWrapper.class; return PathUtil.getJarPathForClass(aClass); } | getIdeaRtJarPath |
5,929 | boolean () { return AntConfigurationBase.getInstance(myProject).isAutoScrollToSource(); } | isAutoScrollMode |
5,930 | void (boolean state) { AntConfigurationBase.getInstance(myProject).setAutoScrollToSource(state); } | setAutoScrollMode |
5,931 | String () { return "_tree_view_"; } | getId |
5,932 | JComponent () { return myPanel; } | getComponent |
5,933 | JPanel () { createModel(); myTree = new MyTree(); myTree.setRootVisible(false); myTree.setShowsRootHandles(true); myTree.updateUI(); myTree.setLargeModel(true); myTree.addMouseListener(new PopupHandler() { @Override public void invokePopup(Component comp, int x, int y) { popupInvoked(comp, x, y); } }); EditSourceOnDoubleClickHandler.install(myTree); EditSourceOnEnterKeyHandler.install(myTree); myAutoScrollToSourceHandler.install(myTree); myOccurenceNavigatorSupport = new OccurenceNavigatorSupport(myTree) { @Override protected Navigatable createDescriptorForNode(@NotNull DefaultMutableTreeNode node) { if (!(node instanceof MessageNode messageNode)) { return null; } AntBuildMessageView.MessageType type = messageNode.getType(); if (type != AntBuildMessageView.MessageType.MESSAGE && type != AntBuildMessageView.MessageType.ERROR) { return null; } if (!isValid(messageNode.getFile())) { return null; } return PsiNavigationSupport.getInstance() .createNavigatable(myProject, messageNode.getFile(), messageNode.getOffset()); } @NotNull @Override public String getNextOccurenceActionName() { return AntBundle.message("ant.execution.next.error.warning.action.name"); } @NotNull @Override public String getPreviousOccurenceActionName() { return AntBundle.message("ant.execution.previous.error.warning.action.name"); } }; final JScrollPane treePane = MessageTreeRenderer.install(myTree); if (myBuildFile instanceof AntBuildFileBase) { ((MessageTreeRenderer)myTree.getCellRenderer()).setUseAnsiColor( ((AntBuildFileBase)myBuildFile).isColoredOutputMessages() ); } return JBUI.Panels.simplePanel(treePane); } | createPanel |
5,934 | void (Component comp, int x, int y) { popupInvoked(comp, x, y); } | invokePopup |
5,935 | Navigatable (@NotNull DefaultMutableTreeNode node) { if (!(node instanceof MessageNode messageNode)) { return null; } AntBuildMessageView.MessageType type = messageNode.getType(); if (type != AntBuildMessageView.MessageType.MESSAGE && type != AntBuildMessageView.MessageType.ERROR) { return null; } if (!isValid(messageNode.getFile())) { return null; } return PsiNavigationSupport.getInstance() .createNavigatable(myProject, messageNode.getFile(), messageNode.getOffset()); } | createDescriptorForNode |
5,936 | String () { return AntBundle.message("ant.execution.next.error.warning.action.name"); } | getNextOccurenceActionName |
5,937 | String () { return AntBundle.message("ant.execution.previous.error.warning.action.name"); } | getPreviousOccurenceActionName |
5,938 | void () { DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode(ROOT_TREE_USER_OBJECT); myTreeModel = new DefaultTreeModel(rootNode); myParentPath = new TreePath(rootNode); } | createModel |
5,939 | void (boolean actionsEnabled) { myActionsEnabled = actionsEnabled; if (actionsEnabled) { myTreeModel.reload(); } } | setActionsEnabled |
5,940 | Object (AntMessage message) { MessageNode messageNode = createMessageNode(message); MutableTreeNode parentNode = (MutableTreeNode)myParentPath.getLastPathComponent(); myTreeModel.insertNodeInto(messageNode, parentNode, parentNode.getChildCount()); myMessageItems.add(messageNode); handleExpansion(); return messageNode; } | addMessage |
5,941 | void (AntMessage[] messages) { DefaultMutableTreeNode parentNode = (DefaultMutableTreeNode)myParentPath.getLastPathComponent(); int[] indices = new int[messages.length]; for (int i = 0; i < messages.length; i++) { AntMessage message = messages[i]; MessageNode messageNode = createMessageNode(message); indices[i] = parentNode.getChildCount(); parentNode.insert(messageNode, indices[i]); myMessageItems.add(messageNode); } myTreeModel.nodesWereInserted(parentNode, indices); handleExpansion(); } | addMessages |
5,942 | MessageNode (AntMessage message) { String text = message.getText(); boolean allowToShowPosition = true; if (JUNIT_TASK_NAME.equals(myCurrentTaskName)) { HyperlinkUtil.PlaceInfo info = HyperlinkUtil.parseJUnitMessage(myProject, text); if (info != null) { message = new AntMessage(message.getType(), message.getPriority(), text, info.getFile(), 1, 1); allowToShowPosition = false; } } return new MessageNode(message, myProject, allowToShowPosition); } | createMessageNode |
5,943 | void () { if (myActionsEnabled && !myTree.hasBeenExpanded(myParentPath)) { myTree.expandPath(myParentPath); } } | handleExpansion |
5,944 | void (AntMessage message, @NlsSafe String url) { final String messagePrefix = printMessage(message, url); addJavacMessageImpl(message.withText(messagePrefix + message.getText())); } | addJavacMessage |
5,945 | void (AntMessage message) { MutableTreeNode parentNode = (MutableTreeNode)myParentPath.getLastPathComponent(); MessageNode messageNode = new MessageNode(message, myProject, false); myTreeModel.insertNodeInto(messageNode, parentNode, parentNode.getChildCount()); myMessageItems.add(messageNode); handleExpansion(); } | addJavacMessageImpl |
5,946 | void (AntMessage exception, boolean showFullTrace) { MessageNode exceptionRootNode = null; StringTokenizer tokenizer = new StringTokenizer(exception.getText(), "\r\n"); while (tokenizer.hasMoreElements()) { String line = (String)tokenizer.nextElement(); if (exceptionRootNode == null) { exceptionRootNode = new MessageNode(exception.withText(line), myProject, true); myMessageItems.add(exceptionRootNode); } else if (showFullTrace) { if (StringUtil.startsWithChar(line, '\t')) { line = line.substring(1); } HyperlinkUtil.PlaceInfo info = HyperlinkUtil.parseStackLine(myProject, '\t' + line); VirtualFile file = info != null ? info.getFile() : null; int lineNumber = info != null ? info.getLine() : 0; int column = info != null ? info.getColumn() : 1; AntMessage newMessage = new AntMessage(exception.getType(), exception.getPriority(), line, file, lineNumber, column); MessageNode child = new MessageNode(newMessage, myProject, false); exceptionRootNode.add(child); myMessageItems.add(child); } } if (exceptionRootNode == null) return; MutableTreeNode parentNode = (MutableTreeNode)myParentPath.getLastPathComponent(); myTreeModel.insertNodeInto(exceptionRootNode, parentNode, parentNode.getChildCount()); handleExpansion(); } | addException |
5,947 | void () { TreeUtil.collapseAll(myTree, 2); } | collapseAll |
5,948 | void () { TreePath[] selectionPaths = myTree.getSelectionPaths(); TreePath leadSelectionPath = myTree.getLeadSelectionPath(); int row = 0; while (row < myTree.getRowCount()) { myTree.expandRow(row); row++; } if (selectionPaths != null) { // restore selection myTree.setSelectionPaths(selectionPaths); } if (leadSelectionPath != null) { // scroll to lead selection path myTree.scrollPathToVisible(leadSelectionPath); } } | expandAll |
5,949 | void () { for (MessageNode messageItem : myMessageItems) { messageItem.clearRangeMarker(); } myMessageItems.clear(); myStatusNode = null; createModel(); myTree.setModel(myTreeModel); } | clearAllMessages |
5,950 | void (AntMessage message) { } | startBuild |
5,951 | void (AntMessage message) { addMessage(message); } | buildFailed |
5,952 | void (AntMessage message) { collapseTargets(); MessageNode targetNode = (MessageNode)addMessage(message); myParentPath = myParentPath.pathByAddingChild(targetNode); } | startTarget |
5,953 | void () { if (myAutoCollapseTargets) { final DefaultMutableTreeNode root = (DefaultMutableTreeNode)myTreeModel.getRoot(); for (int i = 0; i < root.getChildCount(); i++) { final DefaultMutableTreeNode node = (DefaultMutableTreeNode)root.getChildAt(i); myTree.collapsePath(new TreePath(node.getPath())); } } } | collapseTargets |
5,954 | void (AntMessage message) { myCurrentTaskName = message.getText(); MessageNode taskNode = (MessageNode)addMessage(message); myParentPath = myParentPath.pathByAddingChild(taskNode); } | startTask |
5,955 | void (Component component, int x, int y) { final TreePath path = myTree.getLeadSelectionPath(); if (path == null) return; if (!(path.getLastPathComponent()instanceof MessageNode)) return; if (getData(CommonDataKeys.NAVIGATABLE_ARRAY.getName()) == null) return; DefaultActionGroup group = new DefaultActionGroup(); group.add(ActionManager.getInstance().getAction(IdeActions.ACTION_EDIT_SOURCE)); ActionPopupMenu menu = ActionManager.getInstance().createActionPopupMenu(ActionPlaces.ANT_MESSAGES_POPUP, group); menu.getComponent().show(component, x, y); } | popupInvoked |
5,956 | MessageNode () { TreePath path = myTree.getSelectionPath(); if (path == null) return null; if (!(path.getLastPathComponent()instanceof MessageNode)) return null; return (MessageNode)path.getLastPathComponent(); } | getSelectedItem |
5,957 | Object (@NotNull @NonNls String dataId) { if (PlatformCoreDataKeys.BGT_DATA_PROVIDER.is(dataId)) { final MessageNode item = getSelectedItem(); return item != null? (DataProvider)id -> getSlowData(id, item) : null; } return null; } | getData |
5,958 | Object (@NonNls @NotNull String dataId, @NotNull final MessageNode item) { if (CommonDataKeys.NAVIGATABLE.is(dataId)) { if (isValid(item.getFile())) { return PsiNavigationSupport.getInstance().createNavigatable(myProject, item.getFile(), item.getOffset()); } if (item.getType() == AntBuildMessageView.MessageType.TARGET) { final Navigatable descriptor = getDescriptorForTargetNode(item); if (descriptor != null && descriptor.canNavigate()) { return descriptor; } } if (item.getType() == AntBuildMessageView.MessageType.TASK) { final Navigatable descriptor = getDescriptorForTaskNode(item); if (descriptor != null && descriptor.canNavigate()) { return descriptor; } } } return null; } | getSlowData |
5,959 | Navigatable (MessageNode node) { final String targetName = node.getText()[0]; final AntBuildTargetBase target = (AntBuildTargetBase)myBuildFile.getModel().findTarget(targetName); return (target == null) ? null : target.getOpenFileDescriptor(); } | getDescriptorForTargetNode |
5,960 | boolean (final VirtualFile file) { return file != null && ReadAction.compute(() -> file.isValid()).booleanValue(); } | isValid |
5,961 | void (@Nls String messageText) { collapseTargets(); DefaultMutableTreeNode root = (DefaultMutableTreeNode)myTreeModel.getRoot(); myStatusNode = new DefaultMutableTreeNode(messageText); myTreeModel.insertNodeInto(myStatusNode, root, root.getChildCount()); } | finishBuild |
5,962 | void () { if (myStatusNode != null) { TreeUtil.selectPath(myTree, new TreePath(myStatusNode.getPath())); } } | scrollToStatus |
5,963 | void () { final TreePath parentPath = myParentPath.getParentPath(); if (parentPath != null) { myParentPath = parentPath; } } | finishTarget |
5,964 | void () { myCurrentTaskName = null; final TreePath parentPath = myParentPath.getParentPath(); if (parentPath != null) { myParentPath = parentPath; } } | finishTask |
5,965 | TreePath (TreePath treePath) { TreeNode treeNode = (TreeNode)treePath.getLastPathComponent(); if (treeNode instanceof MessageNode) { AntBuildMessageView.MessageType type = ((MessageNode)treeNode).getType(); if (type == AntBuildMessageView.MessageType.ERROR) { return treePath; } } if (treeNode.getChildCount() == 0) { return null; } for (int i = 0; i < treeNode.getChildCount(); i++) { TreeNode childNode = treeNode.getChildAt(i); TreePath childPath = treePath.pathByAddingChild(childNode); TreePath usagePath = getFirstErrorPath(childPath); if (usagePath != null) { return usagePath; } } return null; } | getFirstErrorPath |
5,966 | void () { TreePath path = getFirstErrorPath(new TreePath(myTreeModel.getRoot())); if (path != null) { TreeUtil.selectPath(myTree, path); } } | scrollToFirstError |
5,967 | boolean () { return mySelectedTarget == null && mySelectedTask == null; } | isEmpty |
5,968 | TreeSelection () { TreeSelection selection = new TreeSelection(); TreePath path = myTree.getSelectionPath(); if (path == null) return selection; Object[] paths = path.getPath(); for (Object o : paths) { if (o instanceof MessageNode messageNode) { AntBuildMessageView.MessageType type = messageNode.getType(); if (type == AntBuildMessageView.MessageType.TARGET) { selection.mySelectedTarget = messageNode.getText()[0]; } else if (type == AntBuildMessageView.MessageType.TASK) { selection.mySelectedTask = messageNode.getText()[0]; } } } return selection; } | getSelection |
5,969 | boolean (TreeSelection treeSelection) { if (treeSelection.isEmpty()) return false; DefaultMutableTreeNode root = (DefaultMutableTreeNode)myTreeModel.getRoot(); for (int i = 0; i < root.getChildCount(); i++) { TreeNode node = root.getChildAt(i); if (node instanceof MessageNode messageNode) { String[] text = messageNode.getText(); if (text.length == 0) continue; if (Objects.equals(treeSelection.mySelectedTarget, text[0])) { TreePath pathToSelect = new TreePath(messageNode.getPath()); for (Enumeration enumeration = messageNode.children(); enumeration.hasMoreElements();) { Object o = enumeration.nextElement(); if (o instanceof MessageNode) { messageNode = (MessageNode)o; if (Objects.equals(treeSelection.mySelectedTask, text[0])) { pathToSelect = new TreePath(messageNode.getPath()); break; } } } TreeUtil.selectPath(myTree, pathToSelect); myTree.expandPath(pathToSelect); return true; } } } return false; } | restoreSelection |
5,970 | String () { return myOccurenceNavigatorSupport.getNextOccurenceActionName(); } | getNextOccurenceActionName |
5,971 | String () { return myOccurenceNavigatorSupport.getPreviousOccurenceActionName(); } | getPreviousOccurenceActionName |
5,972 | boolean () { return myOccurenceNavigatorSupport.hasNextOccurence(); } | hasNextOccurence |
5,973 | boolean () { return myOccurenceNavigatorSupport.hasPreviousOccurence(); } | hasPreviousOccurence |
5,974 | void (int i) { super.setRowHeight(0); // this is needed in order to make UI calculate the height for each particular row } | setRowHeight |
5,975 | void () { super.updateUI(); TreeUtil.installActions(this); } | updateUI |
5,976 | Object (@NotNull String dataId) { if (PlatformDataKeys.COPY_PROVIDER.is(dataId)) { return new TextCopyProvider() { @Override public @NotNull ActionUpdateThread getActionUpdateThread() { return ActionUpdateThread.EDT; } @Nullable @Override public Collection<String> getTextLinesToCopy() { TreePath selection = getSelectionPath(); Object value = selection == null ? null : selection.getLastPathComponent(); if (value instanceof MessageNode messageNode) { return Arrays.asList(messageNode.getText()); } return value == null ? null : Collections.singleton(value.toString()); } }; } return null; } | getData |
5,977 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
5,978 | Collection<String> () { TreePath selection = getSelectionPath(); Object value = selection == null ? null : selection.getLastPathComponent(); if (value instanceof MessageNode messageNode) { return Arrays.asList(messageNode.getText()); } return value == null ? null : Collections.singleton(value.toString()); } | getTextLinesToCopy |
5,979 | Status () { return myStatus; } | getStatus |
5,980 | int () { return myErrorCount; } | getErrorCount |
5,981 | ExecutionResult (Executor executor, @NotNull ProgramRunner<?> runner) { final RunProfile profile = myEnvironment.getRunProfile(); if (profile instanceof AntRunConfiguration runConfig) { if (runConfig.getTarget() == null) { return null; } final ProcessHandler processHandler = ExecutionHandler.executeRunConfiguration(runConfig, myEnvironment.getDataContext(), runConfig.getProperties(), AntBuildListener.NULL); if (processHandler == null) { return null; } return new DefaultExecutionResult(new ExecutionConsole() { @NotNull @Override public JComponent getComponent() { return processHandler.getUserData(MESSAGE_VIEW); } @Override public JComponent getPreferredFocusableComponent() { return processHandler.getUserData(MESSAGE_VIEW); } @Override public void dispose() { processHandler.putUserData(MESSAGE_VIEW, null); } }, processHandler); } return null; } | execute |
5,982 | JComponent () { return processHandler.getUserData(MESSAGE_VIEW); } | getComponent |
5,983 | JComponent () { return processHandler.getUserData(MESSAGE_VIEW); } | getPreferredFocusableComponent |
5,984 | void () { processHandler.putUserData(MESSAGE_VIEW, null); } | dispose |
5,985 | VirtualFile () { return myMessage.getFile(); } | getFile |
5,986 | int () { if(myRangeMarker == null) { return -1; } return myRangeMarker.getStartOffset(); } | getOffset |
5,987 | int () { return myMessage.getPriority(); } | getPriority |
5,988 | void () { final RangeMarker rangeMarker = myRangeMarker; if (rangeMarker != null) { myRangeMarker = null; rangeMarker.dispose(); } } | clearRangeMarker |
5,989 | int () { return myPriority; } | getPriority |
5,990 | VirtualFile () { return myFile; } | getFile |
5,991 | int () { return myLine; } | getLine |
5,992 | int () { return myColumn; } | getColumn |
5,993 | AntMessage (@NotNull @Nls String text) { return new AntMessage(getType(), getPriority(), text, getFile(), getLine(), getColumn()); } | withText |
5,994 | void () { myProcessHandler.destroyProcess(); } | stopProcess |
5,995 | boolean () { return myProcessHandler.isProcessTerminating() || myProcessHandler.isProcessTerminated(); } | isTerminateInvoked |
5,996 | Project () { return myProject; } | getProject |
5,997 | OSProcessHandler () { return myProcessHandler; } | getProcessHandler |
5,998 | boolean () { return isStopped; } | isStopped |
5,999 | void (boolean stopped) { isStopped = stopped; } | setStopped |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.