Package com.e1c.g5.v8.dt.check.qfix
Interface IFixManager
-
public interface IFixManagerQuick fix management facility. Provides start/end points for initiating/performing/finishing the quick fix pcocess
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecuteFix(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 neededCollection<FixVariantDescriptor>getApplicableFixVariants(FixProcessHandle handle)Gets applicable fix variants for the given fix process.FixProcessHandleprepareFix(IMarkerWrapper 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 Detail
-
prepareFix
FixProcessHandle prepareFix(IMarkerWrapper marker, IDtProject dtProject)
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
Collection<FixVariantDescriptor> getApplicableFixVariants(FixProcessHandle handle)
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
void selectFixVariant(FixVariantDescriptor descriptor, FixProcessHandle handle)
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
void executeFix(FixProcessHandle handle, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Executes the code of the quick fix- Parameters:
handle- the fix process handle, cannot benull
-
finishFix
void finishFix(FixProcessHandle handle)
Finalizes the quick fix TODO: Check whether it's needed- Parameters:
handle- the fix process handle, cannot benull
-
-