Package com.iizigo.quickfix.fixer
Class GotoProperty
java.lang.Object
org.eclipse.ui.views.markers.WorkbenchMarkerResolution
com.iizigo.quickfix.QuickFixAdapter
com.iizigo.quickfix.fixer.GotoProperty
- All Implemented Interfaces:
IQuickFix,IQuickFixer,IMarkerResolution,IMarkerResolution2
- Direct Known Subclasses:
OpenProperty
An abstract Quick-fix helper class to "go to a property" in the corresponding Editor to e.g. edit a setting. The label and optionally the description must be provided in the subclass, as it cannot vary, i.e. the fix cannot
- Author:
- Christopher Mindus
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe Editor name, null if property is not found, or no editor applies.protected booleanFlag for property is a folder.protected booleanFlag for property is the root.protected StringThe location of the property, null if property is not found.protected GProp<?>The property found, null if not found.Constructor Summary
ConstructorsModifierConstructorDescriptionConstructs the quick-fixer with default constructor for Eclipse.protectedGotoProperty(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, getLabel, getMarker, isMarkerRequiredMethods inherited from class org.eclipse.ui.views.markers.WorkbenchMarkerResolution
run
Field Details
property
The property found, null if not found.location
The location of the property, null if property is not found.editorName
The Editor name, null if property is not found, or no editor applies.isRoot
protected boolean isRootFlag for property is the root.isFolder
protected boolean isFolderFlag for property is a folder.
Constructor Details
GotoProperty
public GotoProperty()Constructs the quick-fixer with default constructor for Eclipse.GotoProperty
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:
getAttributesin interfaceIQuickFix
run
Runs this resolution.- Specified by:
runin interfaceIMarkerResolution- Specified by:
runin interfaceIQuickFixer- Specified by:
runin classQuickFixAdapter- Parameters:
marker- the marker to resolve.
setMarker
Call to set the marker in a new instance of the quick-fixer.- Specified by:
setMarkerin interfaceIQuickFixer- Overrides:
setMarkerin classQuickFixAdapter- Parameters:
marker- The marker.