org.openide.filesystems.FileAttributeEvent Java Examples

The following examples show how to use org.openide.filesystems.FileAttributeEvent. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ReadOnlyFilesHighlighting.java    From netbeans with Apache License 2.0 6 votes vote down vote up
@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);
                    }
                });
                        
            }
        }
    }
}
 
Example #2
Source File: EditorSettingsImpl.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@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);
    }
}
 
Example #3
Source File: DataEditorSupport.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@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();
    }
}
 
Example #4
Source File: FileObjectKeeper.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
    Collection<FileChangeListener> arr = listeners;
    if (arr == null) {
        return;
    }
    for (FileChangeListener l : arr) {
        l.fileAttributeChanged(fe);
    }
}
 
Example #5
Source File: ChangeLiveSupport.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
}
 
Example #6
Source File: LanguageRegistry.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public void fileAttributeChanged(FileAttributeEvent fe) {
    process(fe);
}
 
Example #7
Source File: LanguagesManager.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public void fileAttributeChanged (FileAttributeEvent fe) {
}
 
Example #8
Source File: WLProductProperties.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
    // noop
}
 
Example #9
Source File: DelayedFileChangeListener.java    From NBANDROID-V2 with Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
}
 
Example #10
Source File: ProjectPropertiesProblemProvider.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
    // noop
}
 
Example #11
Source File: GrailsCommandSupport.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public void fileAttributeChanged(FileAttributeEvent fe) {
    // noop
}
 
Example #12
Source File: GroovySourcesNodeFactory.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
}
 
Example #13
Source File: FileBuiltQueryImpl.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
    checkBuilt();
}
 
Example #14
Source File: SourceMapsScanner.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {}
 
Example #15
Source File: WritableXMLFileSystem.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public void fileAttributeChanged(FileAttributeEvent fe) {
    // don't care about attributes on included files...
}
 
Example #16
Source File: ClientSideProject.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
}
 
Example #17
Source File: WLSharedState.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
    // noop
}
 
Example #18
Source File: EjbJarMultiViewDataObject.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public void fileAttributeChanged(FileAttributeEvent fileAttributeEvent) {
}
 
Example #19
Source File: ProjectClassPathImplementation.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
}
 
Example #20
Source File: ProjectLibraryProvider.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public void fileAttributeChanged(FileAttributeEvent fe) {
    recalculate();
}
 
Example #21
Source File: ModelUnit.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
}
 
Example #22
Source File: FileUtilAddRecursiveListenerOnClassFileTest.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
    ev.add(fe);
    msgs.add("fileAttributeChanged");
    msgs.add(fe.getFile().getNameExt());
}
 
Example #23
Source File: DelayFSEventsTest.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
    assertLocks();
}
 
Example #24
Source File: TestAnnotationProvider.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public void fileAttributeChanged(FileAttributeEvent fe) { 
    events.add("fileAttributeChanged " + fe.getFile());
}
 
Example #25
Source File: FolderListener.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public void fileAttributeChanged(FileAttributeEvent fe) {
}
 
Example #26
Source File: WritableXMLFileSystemTest.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public void fileAttributeChanged(FileAttributeEvent fe) {
    changed(fe);
}
 
Example #27
Source File: PhpProject.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
    // noop
}
 
Example #28
Source File: SystemFileSystemTest.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public void fileAttributeChanged(FileAttributeEvent fe) {
    events.add(fe);
}
 
Example #29
Source File: ProguardNodeMultiNodeFactoryProvider.java    From NBANDROID-V2 with Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
}
 
Example #30
Source File: ProjectProblemsProviders.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
}