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,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
Constructor Summary
Constructors Modifier Constructor Description DeleteRect()Constructs the quick-fixer with default constructor for Eclipse.protectedDeleteRect(GProp<?> property)Creates a quick-fixer to go to the specified property.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>getAttributes()Gets the attributes for the marker.java.lang.StringgetID()Returns the ID of the Quick Fixer.java.lang.StringgetLabel()Gets the label of the quick fixer.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.Methods inherited from class com.iizigo.quickfix.QuickFixAdapter
canBeGrouped, findOtherMarkers, getDescription, getImage, getMarker, isMarkerRequired
Field Detail
ID
public static final java.lang.String ID
ID for quick fixer ("term.DeleteRect").- See Also:
- Constant Field Values
property
protected GProp<?> property
The property found, null if not found.
Constructor Detail
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 Detail
getAttributes
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Gets the attributes for the marker.- Specified by:
getAttributesin interfaceIQuickFix
run
public void run(org.eclipse.core.resources.IMarker marker)
Runs this resolution.- Specified by:
runin interfaceorg.eclipse.ui.IMarkerResolution- Specified by:
runin interfaceIQuickFixer- Specified by:
runin classQuickFixAdapter- 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:
setMarkerin interfaceIQuickFixer- Overrides:
setMarkerin classQuickFixAdapter- Parameters:
marker- The marker.
getID
public java.lang.String getID()
Returns the ID of the Quick Fixer.
getLabel
public java.lang.String getLabel()
Gets the label of the quick fixer.- Specified by:
getLabelin interfaceorg.eclipse.ui.IMarkerResolution- Specified by:
getLabelin interfaceIQuickFixer- Specified by:
getLabelin classQuickFixAdapter- Returns:
- a short label for this resolution