org.openide.filesystems.FileUtil.removeRecursiveListener()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(78)

本文整理了Java中org.openide.filesystems.FileUtil.removeRecursiveListener()方法的一些代码示例,展示了FileUtil.removeRecursiveListener()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FileUtil.removeRecursiveListener()方法的具体详情如下:
包路径:org.openide.filesystems.FileUtil
类名称:FileUtil
方法名:removeRecursiveListener

FileUtil.removeRecursiveListener介绍

[英]Removes a listener to changes under given path.
[中]删除侦听器以更改给定路径下的内容。

代码示例

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mercurial

@Override
  public void run() {
    FileUtil.removeRecursiveListener(fList, hgFolder);
  }
});

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-clientproject

private synchronized void removeSiteRootListener() {
  if (siteRootFolder == null) {
    // no listener
    return;
  }
  try {
    FileUtil.removeRecursiveListener(siteRootChangesListener, siteRootFolder);
  } catch (IllegalArgumentException ex) {
    // #216349
    LOGGER.log(Level.INFO, null, ex);
  }
  siteRootFolder = null;
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-javaee-project

public final void close() {
  synchronized (this) {
    for (Map.Entry<File, ItemDescription> entry : listeningTo.entrySet()) {
      FileUtil.removeRecursiveListener(this, entry.getKey());
    }
    listeningTo.clear();
  }
  antHelper.removeAntProjectListener(this);
  evaluator.removePropertyChangeListener(this);
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-php-project

private void unregisterFileChangeListenerFromOriginalSources() {
  assert Thread.holdsLock(this);
  assert fileChangeListener instanceof SourcesFileChangeListener : "FS listener of incorrect type: " + fileChangeListener.getClass().getName();
  FileObject originalSources = ((SourcesFileChangeListener) fileChangeListener).getSources();
  assert originalSources != null : "Original sources should be found";
  File origSources = FileUtil.toFile(originalSources);
  try {
    FileUtil.removeRecursiveListener(fileChangeListener, origSources);
  } catch (IllegalArgumentException ex) {
    LOGGER.log(Level.FINE, null, ex);
  }
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-php-project

void removeSourceDirListener() {
  FileObject sourceDir = sourceDirectoryFileChangeListener.getSourceDir();
  if (sourceDir == null) {
    // not listening
    return;
  }
  synchronized (sourceDirectoryFileChangeListener) {
    try {
      FileUtil.removeRecursiveListener(sourceDirectoryFileChangeListener, FileUtil.toFile(sourceDir));
    } catch (IllegalArgumentException ex) {
      LOGGER.log(Level.INFO, null, ex);
    } finally {
      sourceDirectoryFileChangeListener.setSourceDir(null);
    }
  }
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-php-project

FileUtil.removeRecursiveListener(fileChangeListener, FileUtil.toFile(sources));
  LOGGER.log(Level.FINE, "\t-> RECURSIVE listener unregistered for project {0}", project.getName());
} catch (IllegalArgumentException ex) {

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-javaee-project

FileUtil.removeRecursiveListener(this, removeEntry.getKey());
listeningTo.remove(removeEntry.getKey());
if (synchronize) {

相关文章