Lines 13-24
Link Here
|
13 |
* Contributors: |
13 |
* Contributors: |
14 |
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry |
14 |
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry |
15 |
* Kevin Doyle (IBM) - [188637] Handle the caught exception in DeleteJob.run when file fails to be deleted |
15 |
* Kevin Doyle (IBM) - [188637] Handle the caught exception in DeleteJob.run when file fails to be deleted |
|
|
16 |
* Kevin Doyle (IBM) - [196582] ClassCastException when doing copy/paste with Remote Search view open |
16 |
********************************************************************************/ |
17 |
********************************************************************************/ |
17 |
|
18 |
|
18 |
package org.eclipse.rse.internal.ui.actions; |
19 |
package org.eclipse.rse.internal.ui.actions; |
19 |
import java.util.ArrayList; |
|
|
20 |
import java.util.Iterator; |
20 |
import java.util.Iterator; |
21 |
import java.util.List; |
21 |
import java.util.List; |
|
|
22 |
import java.util.Vector; |
22 |
|
23 |
|
23 |
import org.eclipse.core.runtime.IProgressMonitor; |
24 |
import org.eclipse.core.runtime.IProgressMonitor; |
24 |
import org.eclipse.core.runtime.IStatus; |
25 |
import org.eclipse.core.runtime.IStatus; |
Lines 110-117
Link Here
|
110 |
public IStatus run(IProgressMonitor monitor) |
111 |
public IStatus run(IProgressMonitor monitor) |
111 |
{ |
112 |
{ |
112 |
boolean ok = true; |
113 |
boolean ok = true; |
113 |
List localDeletedObjects = new ArrayList(); |
114 |
List localDeletedObjects = new Vector(); |
114 |
List remoteDeletedObjects = new ArrayList(); |
115 |
List remoteDeletedObjects = new Vector(); |
115 |
|
116 |
|
116 |
// local delete is pretty straight-forward |
117 |
// local delete is pretty straight-forward |
117 |
for (int l = 0; l < _localResources.size() && ok; l++) |
118 |
for (int l = 0; l < _localResources.size() && ok; l++) |
Lines 190-196
Link Here
|
190 |
setProcessAllSelections(true); |
191 |
setProcessAllSelections(true); |
191 |
setContextMenuGroup(ISystemContextMenuConstants.GROUP_REORGANIZE); |
192 |
setContextMenuGroup(ISystemContextMenuConstants.GROUP_REORGANIZE); |
192 |
setHelp(RSEUIPlugin.HELPPREFIX+"actn0021"); //$NON-NLS-1$ |
193 |
setHelp(RSEUIPlugin.HELPPREFIX+"actn0021"); //$NON-NLS-1$ |
193 |
_setList = new ArrayList(); |
194 |
_setList = new Vector(); |
194 |
} |
195 |
} |
195 |
|
196 |
|
196 |
/** |
197 |
/** |
Lines 280-286
Link Here
|
280 |
if (selection instanceof IStructuredSelection) |
281 |
if (selection instanceof IStructuredSelection) |
281 |
{ |
282 |
{ |
282 |
// keep track of the current set |
283 |
// keep track of the current set |
283 |
List localSet = new ArrayList(); |
284 |
List localSet = new Vector(); |
284 |
|
285 |
|
285 |
// divide up all objects to delete |
286 |
// divide up all objects to delete |
286 |
IStructuredSelection ssel = (IStructuredSelection)selection; |
287 |
IStructuredSelection ssel = (IStructuredSelection)selection; |