Package com.e1c.langtool.ui.collector
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 Summary
ConstructorsModifierConstructorDescriptionprotectedBaseDelegatedSelectionCollector(ITranslatingProjectManager translatingProjectManager, IFeatureValueCollectingService collectingService, ITranslationStorageManager translationStorageManager) Instantiates a new base delegated selection collector. -
Method Summary
Modifier and TypeMethodDescriptionprotected FeatureValueCollectingResultcollectSource(TranslationSource source, ICollectingParameters parameters, org.eclipse.ui.IWorkbenchPart part, ISelection selection, org.eclipse.core.runtime.IProgressMonitor monitor) Collect source translating object.protected IEditingContextcreateEditingContext(TranslationSource source, org.eclipse.ui.IWorkbenchPart part) Creates the editing context.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.e1c.langtool.ui.collector.IDelegatingSelectionCollector
collectSelection
-
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 benull.collectingService- the collecting service, cannot benull.translationStorageManager- the translation storage manager, cannot benull.
-
-
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 benull.parameters- the parameters, cannot benull.part- the part, cannot benull.selection- the selection, cannot benull.monitor- the monitor, cannot benull.- Returns:
- the feature value collecting result, may return
nullin monitor is canceled or not applicable selection.
-
createEditingContext
protected IEditingContext createEditingContext(TranslationSource source, org.eclipse.ui.IWorkbenchPart part) Creates the editing context. Default implementation isGlobalEditingContext.- Parameters:
source- the source, cannot benull.part- the part, cannot benull.- Returns:
- the editing context, cannot return
null.
-