public interface ISelectionConversionService (Code)
A service that is capable of converting a selection into resources.
This interface is only intended for use within the
org.eclipse.ui.workbench and org.eclipse.ui.ide
plug-ins.
since: 3.2
Method Summary
public IStructuredSelection
convertToResources(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).
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.
Parameters: originalSelection - the original selection; must not be null.
Method Detail
convertToResources
public IStructuredSelection convertToResources(IStructuredSelection originalSelection)(Code)
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.
Parameters: originalSelection - the original selection; must not be null. the converted selection or an empty selection; nevernull.