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

(-)src/org/eclipse/rse/internal/files/ui/actions/SystemCopyRemoteFileAction.java (+12 lines)
Lines 15-20 Link Here
15
 * Martin Oberhuber (Wind River) - [177523] Unify singleton getter methods
15
 * Martin Oberhuber (Wind River) - [177523] Unify singleton getter methods
16
 * Martin Oberhuber (Wind River) - [186128][refactoring] Move IProgressMonitor last in public base classes 
16
 * Martin Oberhuber (Wind River) - [186128][refactoring] Move IProgressMonitor last in public base classes 
17
 * Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
17
 * Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
18
 * Kevin Doyle (IBM) - [196588] Move Dialog doesn't show Archives
18
 ********************************************************************************/
19
 ********************************************************************************/
19
20
20
package org.eclipse.rse.internal.files.ui.actions;
21
package org.eclipse.rse.internal.files.ui.actions;
Lines 48-53 Link Here
48
import org.eclipse.rse.subsystems.files.core.util.ValidatorFileUniqueName;
49
import org.eclipse.rse.subsystems.files.core.util.ValidatorFileUniqueName;
49
import org.eclipse.rse.ui.ISystemMessages;
50
import org.eclipse.rse.ui.ISystemMessages;
50
import org.eclipse.rse.ui.RSEUIPlugin;
51
import org.eclipse.rse.ui.RSEUIPlugin;
52
import org.eclipse.rse.ui.SystemActionViewerFilter;
51
import org.eclipse.rse.ui.SystemBasePlugin;
53
import org.eclipse.rse.ui.SystemBasePlugin;
52
import org.eclipse.rse.ui.actions.SystemBaseAction;
54
import org.eclipse.rse.ui.actions.SystemBaseAction;
53
import org.eclipse.rse.ui.actions.SystemBaseCopyAction;
55
import org.eclipse.rse.ui.actions.SystemBaseCopyAction;
Lines 347-352 Link Here
347
		  dlg.setSelectionValidator(this);
349
		  dlg.setSelectionValidator(this);
348
		//RSEUIPlugin.logInfo("Calling getParentRemoteFile for '"+firstSelection.getAbsolutePath()+"'");
350
		//RSEUIPlugin.logInfo("Calling getParentRemoteFile for '"+firstSelection.getAbsolutePath()+"'");
349
		firstSelectionParent = firstSelection.getParentRemoteFile();
351
		firstSelectionParent = firstSelection.getParentRemoteFile();
352
		boolean supportsArchiveManagement = firstSelectionParent.getParentRemoteFileSubSystem().getParentRemoteFileSubSystemConfiguration().supportsArchiveManagement();
353
		if (supportsArchiveManagement)
354
		{
355
			// Set a new viewer filter
356
			SystemActionViewerFilter _filter = new SystemActionViewerFilter();
357
			Class[] types = {IRemoteFile.class};
358
			_filter.addFilterCriterion(types, "isDirectory", "true"); //$NON-NLS-1$  //$NON-NLS-2$
359
			_filter.addFilterCriterion(types, "isArchive", "true"); //$NON-NLS-1$  //$NON-NLS-2$
360
			dlg.setCustomViewerFilter(_filter);
361
		}
350
		/*
362
		/*
351
		if (firstSelectionParent != null)
363
		if (firstSelectionParent != null)
352
		  RSEUIPlugin.logInfo("Result of getParentRemoteFile: '"+firstSelectionParent.getAbsolutePath()+"'");
364
		  RSEUIPlugin.logInfo("Result of getParentRemoteFile: '"+firstSelectionParent.getAbsolutePath()+"'");

Return to bug 196588