Lines 27-32
Link Here
|
27 |
* David McKnight (IBM) - [197089] Need to set the filter when there is no separator in filter string |
27 |
* David McKnight (IBM) - [197089] Need to set the filter when there is no separator in filter string |
28 |
* David McKnight (IBM) - [196662] hasChildren() should return false when the file doesn't exist |
28 |
* David McKnight (IBM) - [196662] hasChildren() should return false when the file doesn't exist |
29 |
* David McKnight (IBM) - [197784] Need to check if last separator is at 0 |
29 |
* David McKnight (IBM) - [197784] Need to check if last separator is at 0 |
|
|
30 |
* Kevin Doyle (IBM) - [198576] Renaming a folder directly under a Filter doesn't update children |
30 |
********************************************************************************/ |
31 |
********************************************************************************/ |
31 |
|
32 |
|
32 |
package org.eclipse.rse.internal.files.ui.view; |
33 |
package org.eclipse.rse.internal.files.ui.view; |
Lines 53-60
Link Here
|
53 |
import org.eclipse.jface.viewers.IStructuredSelection; |
54 |
import org.eclipse.jface.viewers.IStructuredSelection; |
54 |
import org.eclipse.jface.viewers.Viewer; |
55 |
import org.eclipse.jface.viewers.Viewer; |
55 |
import org.eclipse.rse.core.RSECorePlugin; |
56 |
import org.eclipse.rse.core.RSECorePlugin; |
56 |
import org.eclipse.rse.core.events.ISystemResourceChangeEvents; |
|
|
57 |
import org.eclipse.rse.core.events.SystemResourceChangeEvent; |
58 |
import org.eclipse.rse.core.filters.ISystemFilter; |
57 |
import org.eclipse.rse.core.filters.ISystemFilter; |
59 |
import org.eclipse.rse.core.filters.ISystemFilterReference; |
58 |
import org.eclipse.rse.core.filters.ISystemFilterReference; |
60 |
import org.eclipse.rse.core.filters.SystemFilterReference; |
59 |
import org.eclipse.rse.core.filters.SystemFilterReference; |
Lines 2516-2530
Link Here
|
2516 |
moveTempResource(localResource, newLocalPath, ss, newRemotePath); |
2515 |
moveTempResource(localResource, newLocalPath, ss, newRemotePath); |
2517 |
} |
2516 |
} |
2518 |
|
2517 |
|
2519 |
if (file.isDirectory()) |
2518 |
// if (file.isDirectory()) |
2520 |
{ |
2519 |
// { |
2521 |
// update all tree views showing this remote folder... |
2520 |
// // update all tree views showing this remote folder... |
2522 |
// Hmm, why do we do this, given SystemView sends a rename event? I think we needed to refresh all child cached references to parent folder name... |
2521 |
// // Hmm, why do we do this, given SystemView sends a rename event? I think we needed to refresh all child cached references to parent folder name... |
2523 |
SystemResourceChangeEvent event = new SystemResourceChangeEvent(file.getParentRemoteFile(), ISystemResourceChangeEvents.EVENT_REFRESH_REMOTE, null); |
2522 |
// SystemResourceChangeEvent event = new SystemResourceChangeEvent(file.getParentRemoteFile(), ISystemResourceChangeEvents.EVENT_REFRESH_REMOTE, null); |
2524 |
sr.fireEvent(event); |
2523 |
// sr.fireEvent(event); |
2525 |
//sr.fireRemoteResourceChangeEvent(ISystemRemoteChangeEvents.SYSTEM_REMOTE_RESOURCE_RENAMED, file, file.getParentRemoteFile(), file.getParentRemoteFileSubSystem(), null, null); |
2524 |
// //sr.fireRemoteResourceChangeEvent(ISystemRemoteChangeEvents.SYSTEM_REMOTE_RESOURCE_RENAMED, file, file.getParentRemoteFile(), file.getParentRemoteFileSubSystem(), null, null); |
2526 |
} |
2525 |
// } |
2527 |
file.markStale(true); |
2526 |
// file.markStale(true); |
2528 |
|
2527 |
|
2529 |
} |
2528 |
} |
2530 |
catch (Exception exc) |
2529 |
catch (Exception exc) |