Package com.e1c.g5.v8.dt.check.qfix
Interface IFixManager
- All Known Implementing Classes:
FixManager
public interface IFixManager
Quick fix management facility. Provides start/end points for initiating/performing/finishing the quick fix pcocess
-
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.
-
Method Details
-
prepareFix
Prepares the quick fix process for the problem being described by the given marker- 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
-
getApplicableFixVariants
Gets applicable fix variants for the given fix process. Variants are being checked for the applicability using the process context- Parameters:
handle- The process handle. May not benull- Returns:
- The set of applicable variants. May not be
null. May be empty
-
selectFixVariant
Selects the target fix variant from available set. The variant can't be changed after that- Parameters:
descriptor- The variant to select. May not benull. The variant should be a one fromgetApplicableFixVariants(FixProcessHandle)return listhandle- The process handle. May not benull
-
executeFix
Executes the code of the quick fix- Parameters:
handle- the fix process handle, cannot benull
-
finishFix
Finalizes the quick fix TODO: Check whether it's needed- Parameters:
handle- the fix process handle, cannot benull
-