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 TypeMethodDescriptionvoidexecuteFix(FixProcessHandle handle, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Executes the code of the quick fixvoidfinishFix(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 markervoidselectFixVariant(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 benullfixRepository- fix repository, cannot benullbmModelManager- model manager, cannot benull
-
-
Method Details
-
executeFix
public void executeFix(FixProcessHandle handle, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Description copied from interface:IFixManagerExecutes the code of the quick fix- Specified by:
executeFixin interfaceIFixManager- Parameters:
handle- the fix process handle, cannot benull
-
finishFix
Description copied from interface:IFixManagerFinalizes the quick fix TODO: Check whether it's needed- Specified by:
finishFixin interfaceIFixManager- Parameters:
handle- the fix process handle, cannot benull
-
getApplicableFixVariants
Description copied from interface:IFixManagerGets applicable fix variants for the given fix process. Variants are being checked for the applicability using the process context- Specified by:
getApplicableFixVariantsin 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:IFixManagerPrepares the quick fix process for the problem being described by the given marker- Specified by:
prepareFixin 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
Optionalotherwise
-
selectFixVariant
Description copied from interface:IFixManagerSelects the target fix variant from available set. The variant can't be changed after that- Specified by:
selectFixVariantin 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
-