当前位置: 首页>>代码示例>>Java>>正文


Java FileAttributeEvent类代码示例

本文整理汇总了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);
                    }
                });
                        
            }
        }
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:22,代码来源:ReadOnlyFilesHighlighting.java

示例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);
    }
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:11,代码来源:CompoundFolderChildren.java

示例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);
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:11,代码来源:FileObjectKeeper.java

示例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();
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:13,代码来源:DataEditorSupport.java

示例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);
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:10,代码来源:FolderChildren.java

示例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);
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:14,代码来源:EditorSettingsImpl.java

示例7: fileAttributeChanged

import org.openide.filesystems.FileAttributeEvent; //导入依赖的package包/类
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:ProjectProblemsProviders.java

示例8: fileAttributeChanged

import org.openide.filesystems.FileAttributeEvent; //导入依赖的package包/类
public void fileAttributeChanged(FileAttributeEvent fe) {
    if ("DataEditorSupport.read-only.refresh".equals(fe.getName())) { // NOI18N
        return;
    }
    someFileChange();
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:7,代码来源:BadgingSupport.java

示例9: fileAttributeChanged

import org.openide.filesystems.FileAttributeEvent; //导入依赖的package包/类
public void fileAttributeChanged(FileAttributeEvent fe) {
    // ignore
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:LayerUtils.java

示例10: fileAttributeChanged

import org.openide.filesystems.FileAttributeEvent; //导入依赖的package包/类
public void fileAttributeChanged(FileAttributeEvent fe) {
    // don't care about attributes on included files...
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:WritableXMLFileSystem.java

示例11: fileAttributeChanged

import org.openide.filesystems.FileAttributeEvent; //导入依赖的package包/类
public void fileAttributeChanged(FileAttributeEvent fe) {
    changed(fe);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:WritableXMLFileSystemTest.java

示例12: fileAttributeChanged

import org.openide.filesystems.FileAttributeEvent; //导入依赖的package包/类
@Override
public void fileAttributeChanged(FileAttributeEvent fe) { }
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:3,代码来源:CachingArchive.java

示例13: fileAttributeChanged

import org.openide.filesystems.FileAttributeEvent; //导入依赖的package包/类
public void fileAttributeChanged (FileAttributeEvent fe) {
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:3,代码来源:LanguagesManager.java

示例14: fileAttributeChanged

import org.openide.filesystems.FileAttributeEvent; //导入依赖的package包/类
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:3,代码来源:SourceMapsScanner.java

示例15: fileAttributeChanged

import org.openide.filesystems.FileAttributeEvent; //导入依赖的package包/类
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
    // noop
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:BuildImageWizard.java


注:本文中的org.openide.filesystems.FileAttributeEvent类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。