Package com.iizigo.term.prop.quickfixer
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
,IMarkerResolution
,IMarkerResolution2
Quick-fix helper class to "delete errored rectangle" in the corresponding Editor to e.g. edit a setting.
- Author:
- Christopher Mindus
Field Summary
Constructor Summary
ModifierConstructorDescriptionConstructs the quick-fixer with default constructor for Eclipse.protected
DeleteRect
(GProp<?> property) Creates a quick-fixer to go to the specified property.Method Summary
Methods inherited from class com.iizigo.quickfix.QuickFixAdapter
canBeGrouped, findOtherMarkers, getDescription, getImage, getMarker, isMarkerRequired
Methods inherited from class org.eclipse.ui.views.markers.WorkbenchMarkerResolution
run
Field Details
ID
ID for quick fixer ("term.DeleteRect").- See Also:
property
The property found, null if not found.
Constructor Details
DeleteRect
public DeleteRect()Constructs the quick-fixer with default constructor for Eclipse.DeleteRect
Creates a quick-fixer to go to the specified property.- Parameters:
property
- The property to go to.
Method Details
getAttributes
Gets the attributes for the marker.- Specified by:
getAttributes
in interfaceIQuickFix
run
Runs this resolution.- Specified by:
run
in interfaceIMarkerResolution
- Specified by:
run
in interfaceIQuickFixer
- Specified by:
run
in classQuickFixAdapter
- Parameters:
marker
- the marker to resolve.
setMarker
Call to set the marker in a new instance of the quick-fixer.- Specified by:
setMarker
in interfaceIQuickFixer
- Overrides:
setMarker
in classQuickFixAdapter
- Parameters:
marker
- The marker.
getID
Returns the ID of the Quick Fixer.getLabel
Gets the label of the quick fixer.- Specified by:
getLabel
in interfaceIMarkerResolution
- Specified by:
getLabel
in interfaceIQuickFixer
- Specified by:
getLabel
in classQuickFixAdapter
- Returns:
- a short label for this resolution