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.

View | Details | Raw Unified | Return to bug 179347
Collapse All | Expand All

(-)a/php.project/src/org/netbeans/modules/php/project/copysupport/CopySupport.java (-1 / +1 lines)
Lines 300-306 Link Here
300
    @Override
300
    @Override
301
    public void fileChanged(FileEvent fe) {
301
    public void fileChanged(FileEvent fe) {
302
        FileObject source = getValidProjectSource(fe);
302
        FileObject source = getValidProjectSource(fe);
303
        if (source == null) {
303
        if (source == null || fe.isExpected()) {
304
            return;
304
            return;
305
        }
305
        }
306
        LOGGER.log(Level.FINE, "Processing event FILE CHANGED for project {0}", project.getName());
306
        LOGGER.log(Level.FINE, "Processing event FILE CHANGED for project {0}", project.getName());
(-)a/php.project/src/org/netbeans/modules/php/project/ui/actions/DownloadCommand.java (-2 / +4 lines)
Lines 182-191 Link Here
182
    //  (otherwise it would make no sense, consider this scenario: upload just one file -> remember timestamp
182
    //  (otherwise it would make no sense, consider this scenario: upload just one file -> remember timestamp
183
    //  -> upload another file or the whole project [timestamp is irrelevant])
183
    //  -> upload another file or the whole project [timestamp is irrelevant])
184
    private static void rememberLastDownload(PhpProject project, FileObject sources, FileObject[] selectedFiles) {
184
    private static void rememberLastDownload(PhpProject project, FileObject sources, FileObject[] selectedFiles) {
185
			boolean found = false;
185
        for (FileObject fo : selectedFiles) {
186
        for (FileObject fo : selectedFiles) {
186
            if (sources.equals(fo)) {
187
  					fo.refresh(true);
188
            if (sources.equals(fo) && !found) {
189
	  						found = true;
187
                ProjectSettings.setLastDownload(project, TimeUnit.SECONDS.convert(System.currentTimeMillis(), TimeUnit.MILLISECONDS));
190
                ProjectSettings.setLastDownload(project, TimeUnit.SECONDS.convert(System.currentTimeMillis(), TimeUnit.MILLISECONDS));
188
                return;
189
            }
191
            }
190
        }
192
        }
191
    }
193
    }

Return to bug 179347