Codota Logo
Change.getVirtualFile
Code IndexAdd Codota to your IDE (free)

How to use
getVirtualFile
method
in
com.intellij.openapi.vcs.changes.Change

Best Java code snippets using com.intellij.openapi.vcs.changes.Change.getVirtualFile (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: jshiell/checkstyle-idea

private List<VirtualFile> filesFor(final LocalChangeList changeList) {
  if (changeList == null || changeList.getChanges() == null) {
    return Collections.emptyList();
  }
  final Collection<VirtualFile> filesInChanges = new HashSet<>();
  for (Change change : changeList.getChanges()) {
    if (change.getVirtualFile() != null) {
      filesInChanges.add(change.getVirtualFile());
    }
  }
  return new ArrayList<>(filesInChanges);
}
origin: dboissier/jenkins-control-plugin

private void fillChangedFilesList() {
  DefaultListModel model = new DefaultListModel();
  if (changeLists != null && (changeLists.length > 0)) {
    StringBuilder builder = new StringBuilder();
    int count = 1;
    for(ChangeList changeList: changeLists) {
      builder.append(changeList.getName());
      if (count < changeLists.length) {
        builder.append(", ");
      }
      if (changeList.getChanges().size() > 0) {
        for(Change change: changeList.getChanges()) {
          VirtualFile virtualFile = change.getVirtualFile();
          if (null != virtualFile) {
            model.addElement(virtualFile.getPath());
          }
        }
      }
      count++;
    }
    changedFilesPane.setBorder(IdeBorderFactory.createTitledBorder(String.format("Changelists: %s", builder.toString()), true));
  }
  changedFilesList.setModel(model);
}
com.intellij.openapi.vcs.changesChangegetVirtualFile

Popular methods of Change

  • getAfterRevision
  • getBeforeRevision
  • <init>
  • getType

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • runOnUiThread (Activity)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JLabel (javax.swing)
  • JTextField (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now