View | Details | Raw Unified | Return to bug 196582 | Differences between
and this patch

Collapse All | Expand All

(-)UI/org/eclipse/rse/internal/ui/actions/SystemCommonDeleteAction.java (-5 / +6 lines)
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;
(-)UI/org/eclipse/rse/internal/ui/view/SystemTableTreeView.java (-3 / +6 lines)
Lines 1428-1435 Link Here
1428
	}
1428
	}
1429
1429
1430
	/**
1430
	/**
1431
	 * Returns the implementation of ISystemRemoteElement for the given
1431
	 * Returns the implementation of ISystemRemoteElementAdapter for the given
1432
	 * object.  Returns null if this object does not adaptable to this.
1432
	 * object.  Returns null if this object is not adaptable to this.
1433
	 */
1433
	 */
1434
	protected ISystemRemoteElementAdapter getRemoteAdapter(Object o)
1434
	protected ISystemRemoteElementAdapter getRemoteAdapter(Object o)
1435
	{
1435
	{
Lines 1445-1451 Link Here
1445
1445
1446
	/**
1446
	/**
1447
	 * Returns the implementation of IRemoteObjectIdentifier for the given
1447
	 * Returns the implementation of IRemoteObjectIdentifier for the given
1448
	 * object.  Returns null if this object does not adaptable to this.
1448
	 * object.  Returns null if this object is not adaptable to this.
1449
	 * 
1450
	 * @deprecated 	should use getViewAdapter(Object) as IRemoteObjectIdentifier
1451
	 * 		is not defined in the adapter factories
1449
	 */
1452
	 */
1450
	protected IRemoteObjectIdentifier getRemoteObjectIdentifier(Object o) 
1453
	protected IRemoteObjectIdentifier getRemoteObjectIdentifier(Object o) 
1451
	{
1454
	{
(-)UI/org/eclipse/rse/internal/ui/view/SystemView.java (-2 / +10 lines)
Lines 38-43 Link Here
38
 * Tobias Schwarz (Wind River)   - [197484] Provide ContextObject for queries on all levels
38
 * Tobias Schwarz (Wind River)   - [197484] Provide ContextObject for queries on all levels
39
 * David McKnight   (IBM)        - [196662] Avoid main thread query to check exists when remote refreshing
39
 * David McKnight   (IBM)        - [196662] Avoid main thread query to check exists when remote refreshing
40
 * Kevin Doyle  (IBM)            - [198576] Renaming a folder directly under a Filter doesn't update children
40
 * Kevin Doyle  (IBM)            - [198576] Renaming a folder directly under a Filter doesn't update children
41
 * Kevin Doyle (IBM) 			 - [196582] Depreciated getRemoteObjectIdentifier
41
 ********************************************************************************/
42
 ********************************************************************************/
42
43
43
package org.eclipse.rse.internal.ui.view;
44
package org.eclipse.rse.internal.ui.view;
Lines 1349-1362 Link Here
1349
		}
1350
		}
1350
	}
1351
	}
1351
1352
1353
	/**
1354
	 * Returns the implementation of IRemoteObjectIdentifier for the given
1355
	 * object.  Returns null if this object is not adaptable to this.
1356
	 *
1357
	 * @deprecated 	should use getViewAdapter(Object) as IRemoteObjectIdentifier
1358
	 * 		is not defined in the adapter factories
1359
	 */
1352
	protected IRemoteObjectIdentifier getRemoteObjectIdentifier(Object o) 
1360
	protected IRemoteObjectIdentifier getRemoteObjectIdentifier(Object o) 
1353
	{
1361
	{
1354
		return (IRemoteObjectIdentifier)((IAdaptable)o).getAdapter(IRemoteObjectIdentifier.class);
1362
		return (IRemoteObjectIdentifier)((IAdaptable)o).getAdapter(IRemoteObjectIdentifier.class);
1355
	}
1363
	}
1356
	
1364
	
1357
	/**
1365
	/**
1358
	 * Returns the implementation of IRemoteObjectIdentifier for the given
1366
	 * Returns the implementation of ISystemRemoteElementAdapter for the given
1359
	 * object.  Returns null if this object does not adaptable to this.
1367
	 * object.  Returns null if this object is not adaptable to this.
1360
	 */
1368
	 */
1361
	protected ISystemRemoteElementAdapter getRemoteAdapter(Object o) 
1369
	protected ISystemRemoteElementAdapter getRemoteAdapter(Object o) 
1362
	{
1370
	{
(-)UI/org/eclipse/rse/internal/ui/view/monitor/SystemMonitorViewPart.java (-4 / +5 lines)
Lines 16-21 Link Here
16
 * Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
16
 * Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
17
 * Kevin Doyle (IBM) - [177587] Made MonitorViewPart a SelectionProvider
17
 * Kevin Doyle (IBM) - [177587] Made MonitorViewPart a SelectionProvider
18
 * Kevin Doyle (IBM) - [160378] Subset action should be disabled when there are no tabs in Monitor
18
 * Kevin Doyle (IBM) - [160378] Subset action should be disabled when there are no tabs in Monitor
19
 * Kevin Doyle (IBM) - [196582] ClassCastException when doing copy/paste
19
 ********************************************************************************/
20
 ********************************************************************************/
20
21
21
package org.eclipse.rse.internal.ui.view.monitor;
22
package org.eclipse.rse.internal.ui.view.monitor;
Lines 926-936 Link Here
926
		int eventType = event.getEventType();
927
		int eventType = event.getEventType();
927
		Object remoteResource = event.getResource();
928
		Object remoteResource = event.getResource();
928
	
929
	
929
		Vector remoteResourceNames = null;
930
		java.util.List remoteResourceNames = null;
930
		if (remoteResource instanceof Vector)
931
		if (remoteResource instanceof java.util.List)
931
		{
932
		{
932
			remoteResourceNames = (Vector) remoteResource;
933
			remoteResourceNames = (java.util.List) remoteResource;
933
			remoteResource = remoteResourceNames.elementAt(0);
934
			remoteResource = remoteResourceNames.get(0);
934
		}
935
		}
935
936
936
		Object child = event.getResource();
937
		Object child = event.getResource();

Return to bug 196582