Lines 29-34
Link Here
|
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 |
* Kevin Doyle (IBM) - [198576] Renaming a folder directly under a Filter doesn't update children |
31 |
* David McKnight (IBM) - [199568] Removing synchronized from internalGetChildren |
31 |
* David McKnight (IBM) - [199568] Removing synchronized from internalGetChildren |
|
|
32 |
* Kevin Doyle (IBM) - [197855] Can't Delete/Rename/Move a Read-Only File |
32 |
********************************************************************************/ |
33 |
********************************************************************************/ |
33 |
|
34 |
|
34 |
package org.eclipse.rse.internal.files.ui.view; |
35 |
package org.eclipse.rse.internal.files.ui.view; |
Lines 311-317
Link Here
|
311 |
|
312 |
|
312 |
if ((elementType == 1 || (isArchive && supportsArchiveManagement))) |
313 |
if ((elementType == 1 || (isArchive && supportsArchiveManagement))) |
313 |
{ |
314 |
{ |
314 |
if (!foldersOnly && canRead && canWrite) |
315 |
if (!foldersOnly && canRead) |
315 |
{ |
316 |
{ |
316 |
if (addNewFile == null) |
317 |
if (addNewFile == null) |
317 |
{ |
318 |
{ |
Lines 321-327
Link Here
|
321 |
} |
322 |
} |
322 |
if (!filesOnly) |
323 |
if (!filesOnly) |
323 |
{ |
324 |
{ |
324 |
if (canRead && canWrite) |
325 |
if (canRead) |
325 |
{ |
326 |
{ |
326 |
if (addNewFolder == null) |
327 |
if (addNewFolder == null) |
327 |
{ |
328 |
{ |
Lines 420-431
Link Here
|
420 |
|
421 |
|
421 |
if (elementType == 1 || (isArchive && supportsArchiveManagement)) |
422 |
if (elementType == 1 || (isArchive && supportsArchiveManagement)) |
422 |
{ |
423 |
{ |
423 |
if (canRead && canWrite) |
424 |
if (canRead) |
424 |
{ |
425 |
{ |
425 |
menu.add(menuGroup, pasteClipboardAction); |
426 |
menu.add(menuGroup, pasteClipboardAction); |
426 |
} |
427 |
} |
427 |
} |
428 |
} |
428 |
if (!firstFile.isRoot() && canRead && canWrite) |
429 |
if (!firstFile.isRoot() && canRead) |
429 |
{ |
430 |
{ |
430 |
menu.add(menuGroup, moveAction); |
431 |
menu.add(menuGroup, moveAction); |
431 |
} |
432 |
} |
Lines 2302-2308
Link Here
|
2302 |
{ |
2303 |
{ |
2303 |
IRemoteFile file = (IRemoteFile) element; |
2304 |
IRemoteFile file = (IRemoteFile) element; |
2304 |
//System.out.println("INSIDE CANDELETE FOR ADAPTER: RETURNING " + !file.isRoot()); |
2305 |
//System.out.println("INSIDE CANDELETE FOR ADAPTER: RETURNING " + !file.isRoot()); |
2305 |
return !file.isRoot() && file.canRead() && file.canWrite(); |
2306 |
return !file.isRoot() && file.canRead(); |
2306 |
} |
2307 |
} |
2307 |
|
2308 |
|
2308 |
|
2309 |
|
Lines 2425-2431
Link Here
|
2425 |
public boolean canRename(Object element) |
2426 |
public boolean canRename(Object element) |
2426 |
{ |
2427 |
{ |
2427 |
IRemoteFile file = (IRemoteFile) element; |
2428 |
IRemoteFile file = (IRemoteFile) element; |
2428 |
return !file.isRoot() && file.canRead() && file.canWrite(); |
2429 |
return !file.isRoot() && file.canRead(); |
2429 |
} |
2430 |
} |
2430 |
|
2431 |
|
2431 |
private void moveTempResource(IResource localResource, IPath newLocalPath, IRemoteFileSubSystem ss, String newRemotePath) |
2432 |
private void moveTempResource(IResource localResource, IPath newLocalPath, IRemoteFileSubSystem ss, String newRemotePath) |