Class FixManager
java.lang.Object
com.e1c.g5.v8.dt.internal.check.qfix.FixManager
- All Implemented Interfaces:
IFixManager
IFixManager
manager implementation.-
Constructor Summary
ConstructorsConstructorDescriptionFixManager
(ICheckRepository checkRepository, IFixRepository fixRepository, IBmModelManager bmModelManager) Constructs an instance of a repository -
Method Summary
Modifier and TypeMethodDescriptionvoid
executeFix
(FixProcessHandle handle, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Executes the code of the quick fixvoid
finishFix
(FixProcessHandle handle) Finalizes the quick fix TODO: Check whether it's neededGets applicable fix variants for the given fix process.prepareFix
(Marker marker, IDtProject dtProject) Prepares the quick fix process for the problem being described by the given markervoid
selectFixVariant
(FixVariantDescriptor descriptor, FixProcessHandle handle) Selects the target fix variant from available set.
-
Constructor Details
-
FixManager
@Inject public FixManager(ICheckRepository checkRepository, IFixRepository fixRepository, IBmModelManager bmModelManager) Constructs an instance of a repository- Parameters:
checkRepository
- check repository, cannot benull
fixRepository
- fix repository, cannot benull
bmModelManager
- model manager, cannot benull
-
-
Method Details
-
executeFix
public void executeFix(FixProcessHandle handle, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Description copied from interface:IFixManager
Executes the code of the quick fix- Specified by:
executeFix
in interfaceIFixManager
- Parameters:
handle
- the fix process handle, cannot benull
-
finishFix
Description copied from interface:IFixManager
Finalizes the quick fix TODO: Check whether it's needed- Specified by:
finishFix
in interfaceIFixManager
- Parameters:
handle
- the fix process handle, cannot benull
-
getApplicableFixVariants
Description copied from interface:IFixManager
Gets applicable fix variants for the given fix process. Variants are being checked for the applicability using the process context- Specified by:
getApplicableFixVariants
in interfaceIFixManager
- Parameters:
handle
- The process handle. May not benull
- Returns:
- The set of applicable variants. May not be
null
. May be empty
-
prepareFix
Description copied from interface:IFixManager
Prepares the quick fix process for the problem being described by the given marker- Specified by:
prepareFix
in interfaceIFixManager
- Parameters:
marker
- The marker to create the fix process for. May not benull
- Returns:
- The process handle if the system has a set of registered fixes for it. Empty
Optional
otherwise
-
selectFixVariant
Description copied from interface:IFixManager
Selects the target fix variant from available set. The variant can't be changed after that- Specified by:
selectFixVariant
in interfaceIFixManager
- Parameters:
descriptor
- The variant to select. May not benull
. The variant should be a one fromIFixManager.getApplicableFixVariants(FixProcessHandle)
return listhandle
- The process handle. May not benull
-