Available Methods
- newArrayList ( )
- map ( )
- newHashSet ( )
- filter ( )
- find ( )
- getFirstItem ( )
- addAll ( )
- addIfNotNull ( )
- mapNotNull ( )
- toArray ( )
- exists ( )
- emptyList ( )
- newHashMap ( )
- concat ( )
- isEmpty ( )
- newSmartList ( )
- getLastItem ( )
- list ( )
- sort ( )
- map2Array ( )
- process ( )
- newLinkedHashSet ( )
- sorted ( )
- notNullize ( )
- map2Set ( )
- newTroveSet ( )
- reverse ( )
- newLinkedHashMap ( )
- immutableList ( )
- newConcurrentMap ( )
- newArrayListWithCapacity ( )
- createMaybeSingletonList ( )
- map2Map ( )
- findAll ( )
- findInstance ( )
- intersects ( )
- indexOf ( )
- getOrCreate ( )
- iterateBackward ( )
- union ( )
- groupAndRuns ( )
- addAllNotNull ( )
Related Classes
- java.util.Arrays
- java.io.File
- java.util.Collections
- org.apache.commons.lang.StringUtils
- javax.annotation.Nullable
- javax.annotation.Nonnull
- org.jetbrains.annotations.NotNull
- org.jetbrains.annotations.Nullable
- com.intellij.openapi.project.Project
- com.intellij.openapi.vfs.VirtualFile
- com.intellij.openapi.actionSystem.AnActionEvent
- com.intellij.openapi.application.ApplicationManager
- com.intellij.psi.PsiFile
- com.intellij.openapi.editor.Editor
- com.intellij.psi.PsiElement
- org.jdom.Element
- com.intellij.openapi.editor.Document
- com.intellij.openapi.util.text.StringUtil
- com.intellij.openapi.ui.Messages
- com.intellij.psi.PsiManager
- com.intellij.openapi.util.TextRange
- com.intellij.psi.util.PsiTreeUtil
- com.intellij.psi.search.GlobalSearchScope
- com.intellij.openapi.actionSystem.DataContext
- com.intellij.openapi.module.Module
Java Code Examples for com.intellij.util.containers.ContainerUtil#iterateBackward()
The following examples show how to use
com.intellij.util.containers.ContainerUtil#iterateBackward() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DifferenceReverter.java From consulo with Apache License 2.0 | 6 votes |
public void doRevert(boolean revertContentChanges) throws IOException { Set<String> vetoedFiles = new THashSet<String>(); for (Difference each : ContainerUtil.iterateBackward(myDiffs)) { Entry l = each.getLeft(); Entry r = each.getRight(); if (l == null) { revertCreation(r, vetoedFiles); continue; } vetoedFiles.add(l.getPath()); if (r == null) { revertDeletion(l); continue; } VirtualFile file = myGateway.findOrCreateFileSafely(r.getPath(), r.isDirectory()); revertRename(l, file); if (revertContentChanges) revertContentChange(l, file); } }
Example 2
Source File: HistoryDialogModel.java From consulo with Apache License 2.0 | 5 votes |
private List<RevisionItem> groupRevisions(List<Revision> revs) { LinkedList<RevisionItem> result = new LinkedList<>(); for (Revision each : ContainerUtil.iterateBackward(revs)) { if (each.isLabel() && !result.isEmpty()) { result.getFirst().labels.addFirst(each); } else { result.addFirst(new RevisionItem(each)); } } return result; }
Example 3
Source File: ChangeSet.java From consulo with Apache License 2.0 | 5 votes |
private void doAccept(ChangeVisitor v) throws ChangeVisitor.StopVisitingException { v.begin(this); for (Change c : ContainerUtil.iterateBackward(myChanges)) { c.accept(v); } v.end(this); }