This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
@Override
public void fileChanged(FileEvent fe) {
FileObject source = getValidProjectSource(fe);
if (source == null) {
if (source == null || fe.isExpected()) {
return;
}
LOGGER.log(Level.FINE, "Processing event FILE CHANGED for project {0}", project.getName());
// (otherwise it would make no sense, consider this scenario: upload just one file -> remember timestamp
// -> upload another file or the whole project [timestamp is irrelevant])
private static void rememberLastDownload(PhpProject project, FileObject sources, FileObject[] selectedFiles) {
boolean found = false;
for (FileObject fo : selectedFiles) {
if (sources.equals(fo)) {
fo.refresh(true);
if (sources.equals(fo) && !found) {
found = true;
ProjectSettings.setLastDownload(project, TimeUnit.SECONDS.convert(System.currentTimeMillis(), TimeUnit.MILLISECONDS));