Package com.e1c.langtool.ui.collector
Class CommonFeatureValueCollectingResult
java.lang.Object
com.e1c.langtool.ui.collector.CommonFeatureValueCollectingResult
- All Implemented Interfaces:
FeatureValueCollectingResult
public class CommonFeatureValueCollectingResult
extends Object
implements FeatureValueCollectingResult
The default implementation of the collecting result.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCommonFeatureValueCollectingResult(TranslationSource source, Collection<FeatureValue> values, org.eclipse.ui.IWorkbenchPart part, ISelection selection, IEditingContext context, Function<TranslationSource, ITranslatingProject> projectProvider) Instantiates a new common feature value collecting result. -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose the result and it cannot be used in future.Gets the editing context.Gets the translating project of the source object.org.eclipse.ui.IWorkbenchPartGets the selected part.Gets the selection in the part.Gets the source translating object.Gets the collected values.booleanChecks if the result is disposed.
-
Constructor Details
-
CommonFeatureValueCollectingResult
public CommonFeatureValueCollectingResult(TranslationSource source, Collection<FeatureValue> values, org.eclipse.ui.IWorkbenchPart part, ISelection selection, IEditingContext context, Function<TranslationSource, ITranslatingProject> projectProvider) Instantiates a new common feature value collecting result.- Parameters:
source- the source, cannot benull.values- the values, cannot benull.part- the part, cannot benull.selection- the selection, cannot benull.context- the editing context, cannot benull.projectProvider- the project provider by the source, cannot benull.
-
-
Method Details
-
getProject
Description copied from interface:FeatureValueCollectingResultGets the translating project of the source object.- Specified by:
getProjectin interfaceFeatureValueCollectingResult- Returns:
- the project, cannot be
null.
-
getSourceObject
Description copied from interface:FeatureValueCollectingResultGets the source translating object.- Specified by:
getSourceObjectin interfaceFeatureValueCollectingResult- Returns:
- the source translating object, cannot be
null.
-
getSelectedPart
public org.eclipse.ui.IWorkbenchPart getSelectedPart()Description copied from interface:FeatureValueCollectingResultGets the selected part.- Specified by:
getSelectedPartin interfaceFeatureValueCollectingResult- Returns:
- the selected part, cannot be
null.
-
getSelection
Description copied from interface:FeatureValueCollectingResultGets the selection in the part.- Specified by:
getSelectionin interfaceFeatureValueCollectingResult- Returns:
- the selection, cannot return
null
-
getValues
Description copied from interface:FeatureValueCollectingResultGets the collected values.- Specified by:
getValuesin interfaceFeatureValueCollectingResult- Returns:
- the collected values, cannot be
null.
-
getEditingContext
Description copied from interface:FeatureValueCollectingResultGets the editing context.- Specified by:
getEditingContextin interfaceFeatureValueCollectingResult- Returns:
- the editing context, cannot be
null.
-
dispose
public void dispose()Description copied from interface:FeatureValueCollectingResultDispose the result and it cannot be used in future.- Specified by:
disposein interfaceFeatureValueCollectingResult
-
isDisposed
public boolean isDisposed()Description copied from interface:FeatureValueCollectingResultChecks if the result is disposed.- Specified by:
isDisposedin interfaceFeatureValueCollectingResult- Returns:
- true, if the result is disposed
-