Class BaseDelegatedSelectionCollector

java.lang.Object
com.e1c.langtool.ui.collector.BaseDelegatedSelectionCollector
All Implemented Interfaces:
IDelegatingSelectionCollector
Direct Known Subclasses:
MoxelPropertiesCollectorDelegate, NavigatorSelectionCollectorDelegate, XtextEditorSelectionCollectorDelegate

public abstract class BaseDelegatedSelectionCollector extends Object implements IDelegatingSelectionCollector
The abstract base delegated selection collector.
  • Constructor Details

    • BaseDelegatedSelectionCollector

      protected BaseDelegatedSelectionCollector(ITranslatingProjectManager translatingProjectManager, IFeatureValueCollectingService collectingService, ITranslationStorageManager translationStorageManager)
      Instantiates a new base delegated selection collector.
      Parameters:
      translatingProjectManager - the translating project manager, cannot be null.
      collectingService - the collecting service, cannot be null.
      translationStorageManager - the translation storage manager, cannot be null.
  • Method Details

    • collectSource

      protected FeatureValueCollectingResult collectSource(TranslationSource source, ICollectingParameters parameters, org.eclipse.ui.IWorkbenchPart part, ISelection selection, org.eclipse.core.runtime.IProgressMonitor monitor)
      Collect source translating object.
      Parameters:
      source - the source, cannot be null.
      parameters - the parameters, cannot be null.
      part - the part, cannot be null.
      selection - the selection, cannot be null.
      monitor - the monitor, cannot be null.
      Returns:
      the feature value collecting result, may return null in monitor is canceled or not applicable selection.
    • createEditingContext

      protected IEditingContext createEditingContext(TranslationSource source, org.eclipse.ui.IWorkbenchPart part)
      Creates the editing context. Default implementation is GlobalEditingContext.
      Parameters:
      source - the source, cannot be null.
      part - the part, cannot be null.
      Returns:
      the editing context, cannot return null.