Java Code Examples for org.openide.filesystems.FileAttributeEvent

The following examples show how to use org.openide.filesystems.FileAttributeEvent. These examples are extracted from open source projects. 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 Project: netbeans   Source File: ReadOnlyFilesHighlighting.java    License: 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 Project: netbeans   Source File: FileObjectKeeper.java    License: 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 3
Source Project: netbeans   Source File: DataEditorSupport.java    License: 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 Project: netbeans   Source File: EditorSettingsImpl.java    License: 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 5
Source Project: netbeans   Source File: ProjectProblemsProviders.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
}
 
Example 6
Source Project: netbeans   Source File: ArtifactCopyOnSaveSupport.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe){
}
 
Example 7
Source Project: netbeans   Source File: DefaultSourceLevelQueryImpl.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
}
 
Example 8
Source Project: netbeans   Source File: ModuleNames.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
}
 
Example 9
Source Project: netbeans   Source File: ModuleNames.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
}
 
Example 10
Source Project: netbeans   Source File: GlobFileBuiltQuery.java    License: Apache License 2.0 4 votes vote down vote up
public @Override void fileAttributeChanged(FileAttributeEvent fe) {
    // ignore
}
 
Example 11
Source Project: netbeans   Source File: ProjectPropertiesProblemProvider.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
    // noop
}
 
Example 12
Source Project: netbeans   Source File: WebServiceListModel.java    License: Apache License 2.0 4 votes vote down vote up
public void fileAttributeChanged(FileAttributeEvent fe) {
}
 
Example 13
Source Project: netbeans   Source File: TextmateTokenId.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
}
 
Example 14
Source Project: netbeans   Source File: LineBreakpoint.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
}
 
Example 15
Source Project: netbeans   Source File: NbMavenProjectImpl.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fileAttributeEvent) {
}
 
Example 16
Source Project: netbeans   Source File: AppClientProject.java    License: Apache License 2.0 4 votes vote down vote up
public void fileAttributeChanged (FileAttributeEvent fe) {
}
 
Example 17
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
    //Not important
}
 
Example 18
Source Project: netbeans   Source File: FolderListener.java    License: Apache License 2.0 4 votes vote down vote up
public void fileAttributeChanged(FileAttributeEvent fe) {
}
 
Example 19
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
}
 
Example 20
Source Project: netbeans   Source File: SiteDocsNodeFactory.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
}
 
Example 21
Source Project: netbeans   Source File: LibrariesNode.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
}
 
Example 22
Source Project: netbeans   Source File: ArchiveViews.java    License: Apache License 2.0 4 votes vote down vote up
public void fileAttributeChanged(FileAttributeEvent fe) {
}
 
Example 23
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
    //Not important
}
 
Example 24
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
    //Not important
}
 
Example 25
Source Project: netbeans   Source File: StorageImpl.java    License: Apache License 2.0 4 votes vote down vote up
public void fileAttributeChanged(FileAttributeEvent fe) {
    // just ignore these
}
 
Example 26
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
    if (filter.contains(Op.FILE_ATTR_CHANGED)) {
        action.run();
    }
}
 
Example 27
Source Project: netbeans   Source File: ModuleClassPaths.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
    //Not important
}
 
Example 28
Source Project: netbeans   Source File: Terminal.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
    applyShortcuts();
}
 
Example 29
Source Project: netbeans   Source File: FieldLNCache.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {}
 
Example 30
Source Project: netbeans   Source File: RuntimePlatformProblemsProvider.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void fileAttributeChanged(FileAttributeEvent fe) {
}