Class FixManager

java.lang.Object
com.e1c.g5.v8.dt.internal.check.qfix.FixManager
All Implemented Interfaces:
IFixManager

public class FixManager extends Object implements IFixManager
IFixManager manager implementation.
  • Constructor Details

    • FixManager

      @Inject public FixManager(ICheckRepository checkRepository, IFixRepository fixRepository, IBmModelManager bmModelManager)
      Constructs an instance of a repository
      Parameters:
      checkRepository - check repository, cannot be null
      fixRepository - fix repository, cannot be null
      bmModelManager - model manager, cannot be null
  • 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 interface IFixManager
      Parameters:
      handle - the fix process handle, cannot be null
    • finishFix

      public void finishFix(FixProcessHandle handle)
      Description copied from interface: IFixManager
      Finalizes the quick fix TODO: Check whether it's needed
      Specified by:
      finishFix in interface IFixManager
      Parameters:
      handle - the fix process handle, cannot be null
    • getApplicableFixVariants

      public Collection<FixVariantDescriptor> getApplicableFixVariants(FixProcessHandle handle)
      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 interface IFixManager
      Parameters:
      handle - The process handle. May not be null
      Returns:
      The set of applicable variants. May not be null. May be empty
    • prepareFix

      public FixProcessHandle prepareFix(Marker marker, IDtProject dtProject)
      Description copied from interface: IFixManager
      Prepares the quick fix process for the problem being described by the given marker
      Specified by:
      prepareFix in interface IFixManager
      Parameters:
      marker - The marker to create the fix process for. May not be null
      Returns:
      The process handle if the system has a set of registered fixes for it. Empty Optional otherwise
    • selectFixVariant

      public void selectFixVariant(FixVariantDescriptor descriptor, FixProcessHandle handle)
      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 interface IFixManager
      Parameters:
      descriptor - The variant to select. May not be null. The variant should be a one from IFixManager.getApplicableFixVariants(FixProcessHandle) return list
      handle - The process handle. May not be null