本文整理汇总了Java中org.openide.filesystems.FileAttributeEvent类的典型用法代码示例。如果您正苦于以下问题:Java FileAttributeEvent类的具体用法?Java FileAttributeEvent怎么用?Java FileAttributeEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FileAttributeEvent类属于org.openide.filesystems包,在下文中一共展示了FileAttributeEvent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: fileAttributeChanged
import org.openide.filesystems.FileAttributeEvent; //导入依赖的package包/类
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
if ("DataEditorSupport.read-only.refresh".equals(fe.getName())) {
synchronized (this) {
FileObject fo = fe.getFile();
assert lastFile != null;
if (lastFile.get() == fo) {
final boolean readOnly = !fo.canWrite();
// Update asynchronously to prevent deadlock of filesystem <-> document
// since this fileAttributeChanged() gets invoked under FS lock.
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
updateFileReadOnly(readOnly);
}
});
}
}
}
}
示例2: fileAttributeChanged
import org.openide.filesystems.FileAttributeEvent; //导入依赖的package包/类
public void fileAttributeChanged(FileAttributeEvent fe) {
// if (FileUtil.affectsOrder(fe)) {
// if (!filterEvents(fe)) {
// rebuild();
// } else {
// rebuildTask.schedule(DELAY);
// }
// }
fe.runWhenDeliveryOver(rebuildRunnable);
}
示例3: fileAttributeChanged
import org.openide.filesystems.FileAttributeEvent; //导入依赖的package包/类
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
Collection<FileChangeListener> arr = listeners;
if (arr == null) {
return;
}
for (FileChangeListener l : arr) {
l.fileAttributeChanged(fe);
}
}
示例4: fileAttributeChanged
import org.openide.filesystems.FileAttributeEvent; //导入依赖的package包/类
@Override
public void fileAttributeChanged(FileAttributeEvent fae) {
Env myEnv = this.env.get ();
if (myEnv == null || myEnv.getFileImpl () != fae.getFile()) {
return;
}
// wait only for event from org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.refreshImpl()
if ("DataEditorSupport.read-only.refresh".equals(fae.getName())) { //NOI18N
myEnv.readOnlyRefresh();
}
}
示例5: fileAttributeChanged
import org.openide.filesystems.FileAttributeEvent; //导入依赖的package包/类
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
if (DataObject.EA_ASSIGNED_LOADER.equals(fe.getName())) {
// make sure this event is processed by the data system
DataObjectPool.checkAttributeChanged(fe);
refreshKey(new FolderChildrenPair(fe.getFile()));
refreshChildren(RefreshMode.SHALLOW_IMMEDIATE);
}
}
示例6: fileAttributeChanged
import org.openide.filesystems.FileAttributeEvent; //导入依赖的package包/类
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
if (FATTR_CURRENT_KEYMAP_PROFILE.equals(fe.getName())) {
Object n = fe.getNewValue();
Object o = fe.getOldValue();
String ov = o == null ? DEFAULT_PROFILE : o.toString();
String nv = n == null ? DEFAULT_PROFILE : n.toString();
currentKeyMapProfile = nv;
pcs.firePropertyChange (PROP_CURRENT_KEY_MAP_PROFILE, ov, nv);
}
}
示例7: fileAttributeChanged
import org.openide.filesystems.FileAttributeEvent; //导入依赖的package包/类
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
}
示例8: fileAttributeChanged
import org.openide.filesystems.FileAttributeEvent; //导入依赖的package包/类
public void fileAttributeChanged(FileAttributeEvent fe) {
if ("DataEditorSupport.read-only.refresh".equals(fe.getName())) { // NOI18N
return;
}
someFileChange();
}
示例9: fileAttributeChanged
import org.openide.filesystems.FileAttributeEvent; //导入依赖的package包/类
public void fileAttributeChanged(FileAttributeEvent fe) {
// ignore
}
示例10: fileAttributeChanged
import org.openide.filesystems.FileAttributeEvent; //导入依赖的package包/类
public void fileAttributeChanged(FileAttributeEvent fe) {
// don't care about attributes on included files...
}
示例11: fileAttributeChanged
import org.openide.filesystems.FileAttributeEvent; //导入依赖的package包/类
public void fileAttributeChanged(FileAttributeEvent fe) {
changed(fe);
}
示例12: fileAttributeChanged
import org.openide.filesystems.FileAttributeEvent; //导入依赖的package包/类
@Override
public void fileAttributeChanged(FileAttributeEvent fe) { }
示例13: fileAttributeChanged
import org.openide.filesystems.FileAttributeEvent; //导入依赖的package包/类
public void fileAttributeChanged (FileAttributeEvent fe) {
}
示例14: fileAttributeChanged
import org.openide.filesystems.FileAttributeEvent; //导入依赖的package包/类
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {}
示例15: fileAttributeChanged
import org.openide.filesystems.FileAttributeEvent; //导入依赖的package包/类
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
// noop
}