本文整理了Java中org.openide.filesystems.FileUtil.removeRecursiveListener()
方法的一些代码示例,展示了FileUtil.removeRecursiveListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FileUtil.removeRecursiveListener()
方法的具体详情如下:
包路径:org.openide.filesystems.FileUtil
类名称: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) {
内容来源于网络,如有侵权,请联系作者删除!