Package com.e1c.langtool.ui.collector
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:
-
ISelectionISelectionListener
-
Method Summary
Modifier and TypeMethodDescriptioncollectSelection(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-nullvalue, but not when the selection changes tonull. If there is a requirement to be notified in the latter scenario, implementINullSelectionListener. The event will be posted through this method.- Parameters:
part- the workbench part containing the selectionselection- the current selection. This may benullifINullSelectionListeneris implemented.parameters- the parameters of collecting, cannot benullmonitor- the monitor, cannot benull- Returns:
- the feature value collecting result, may return
nullif cannot supply result or monitor is canceled.
-