Class DeleteRect

java.lang.Object
org.eclipse.ui.views.markers.WorkbenchMarkerResolution
com.iizigo.quickfix.QuickFixAdapter
com.iizigo.term.prop.quickfixer.DeleteRect
All Implemented Interfaces:
IQuickFix, IQuickFixer, org.eclipse.ui.IMarkerResolution, org.eclipse.ui.IMarkerResolution2

public class DeleteRect extends QuickFixAdapter implements IQuickFix
Quick-fix helper class to "delete errored rectangle" in the corresponding Editor to e.g. edit a setting.
Author:
Christopher Mindus
  • Field Details

    • ID

      public static final String ID
      ID for quick fixer ("term.DeleteRect").
      See Also:
    • property

      protected GProp<?> property
      The property found, null if not found.
  • Constructor Details

    • DeleteRect

      public DeleteRect()
      Constructs the quick-fixer with default constructor for Eclipse.
    • DeleteRect

      protected DeleteRect(GProp<?> property)
      Creates a quick-fixer to go to the specified property.
      Parameters:
      property - The property to go to.
  • Method Details

    • getAttributes

      public Map<String,Object> getAttributes()
      Gets the attributes for the marker.
      Specified by:
      getAttributes in interface IQuickFix
    • run

      public void run(org.eclipse.core.resources.IMarker marker)
      Runs this resolution.
      Specified by:
      run in interface org.eclipse.ui.IMarkerResolution
      Specified by:
      run in interface IQuickFixer
      Specified by:
      run in class QuickFixAdapter
      Parameters:
      marker - the marker to resolve.
    • setMarker

      public void setMarker(org.eclipse.core.resources.IMarker marker)
      Call to set the marker in a new instance of the quick-fixer.
      Specified by:
      setMarker in interface IQuickFixer
      Overrides:
      setMarker in class QuickFixAdapter
      Parameters:
      marker - The marker.
    • getID

      public String getID()
      Returns the ID of the Quick Fixer.
      Specified by:
      getID in interface IQuickFix
    • getLabel

      public String getLabel()
      Gets the label of the quick fixer.
      Specified by:
      getLabel in interface org.eclipse.ui.IMarkerResolution
      Specified by:
      getLabel in interface IQuickFixer
      Specified by:
      getLabel in class QuickFixAdapter
      Returns:
      a short label for this resolution