Package org.eclipse.ui.internal
Class SelectionConversionService
java.lang.Object
org.eclipse.ui.internal.SelectionConversionService
- All Implemented Interfaces:
ISelectionConversionService
The SelectionConversionService is the service that converts the selection to IResources.
This interface is only intended for use within the
org.eclipse.ui.workbench
and org.eclipse.ui.ide
plug-ins.
- Since:
- 3.2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertToResources
(IStructuredSelection originalSelection) Attempt to convert the elements in the passed selection into resources by asking each for its IResource property (iff it isn't already a resource).
-
Constructor Details
-
SelectionConversionService
public SelectionConversionService()
-
-
Method Details
-
convertToResources
Attempt to convert the elements in the passed selection into resources by asking each for its IResource property (iff it isn't already a resource). If all elements in the initial selection can be converted to resources then answer a new selection containing these resources; otherwise answer an empty selection.- Specified by:
convertToResources
in interfaceISelectionConversionService
- Parameters:
originalSelection
- the original selection- Returns:
- the converted selection or an empty selection.
-