Interface IDelegatingSelectionCollector

All Known Implementing Classes:
BaseDelegatedSelectionCollector, MoxelPropertiesCollectorDelegate, NavigatorSelectionCollectorDelegate, XtextEditorSelectionCollectorDelegate

public interface IDelegatingSelectionCollector
Interface for collecting translatable FeatureValue from the selection in specific context of the part.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    collectSelection(org.eclipse.ui.IWorkbenchPart part, ISelection selection, ICollectingParameters parameters, org.eclipse.core.runtime.IProgressMonitor monitor)
    Delegating collector from selection content to return collecting result by selected translatable objects.
  • Method Details

    • collectSelection

      FeatureValueCollectingResult collectSelection(org.eclipse.ui.IWorkbenchPart part, ISelection selection, ICollectingParameters parameters, org.eclipse.core.runtime.IProgressMonitor monitor)
      Delegating collector from selection content to return collecting result by selected translatable objects.

      This method is called when the selection changes from one to a non-null value, but not when the selection changes to null. If there is a requirement to be notified in the latter scenario, implement INullSelectionListener. The event will be posted through this method.

      Parameters:
      part - the workbench part containing the selection
      selection - the current selection. This may be null if INullSelectionListener is implemented.
      parameters - the parameters of collecting, cannot be null
      monitor - the monitor, cannot be null
      Returns:
      the feature value collecting result, may return null if cannot supply result or monitor is canceled.