Interface IQuickFixer

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethodDescription
      java.lang.StringgetLabel()
      Returns a short label indicating what the resolution will do.
      booleanisMarkerRequired()
      Indicates if the label returned and also the description depends on the marker selected.
      voidrun​(org.eclipse.core.resources.IMarker marker)
      Runs this resolution.
      voidsetMarker​(org.eclipse.core.resources.IMarker marker)
      Call to set the marker in a new instance of the quick-fixer.
    • Method Detail

      • run

        void run​(org.eclipse.core.resources.IMarker marker)
        Runs this resolution.
        Specified by:
        run in interface org.eclipse.ui.IMarkerResolution
        Parameters:
        marker - the marker to resolve.
      • getLabel

        java.lang.String getLabel()
        Returns a short label indicating what the resolution will do. A quick-fixer that returns true to isMarkerRequired() will have the marker set and can be retrieved using getMarker() if it extends the QuickFixAdapter class.
        Specified by:
        getLabel in interface org.eclipse.ui.IMarkerResolution
        Returns:
        A short label for this resolution.
      • isMarkerRequired

        boolean isMarkerRequired()
        Indicates if the label returned and also the description depends on the marker selected.

        In case this method returns true, a new Quick-Fix of the same instance is created followed by setMarker(marker).

        A quick-fixer that returns true to isMarkerRequired() will have the marker set and can be retrieved using getMarker() if it extends the QuickFixAdapter class.

      • setMarker

        void setMarker​(org.eclipse.core.resources.IMarker marker)
        Call to set the marker in a new instance of the quick-fixer.
        Parameters:
        marker - The marker.