Package com.iizigo.quickfix.fixer
Class OpenProperty
java.lang.Object
org.eclipse.ui.views.markers.WorkbenchMarkerResolution
com.iizigo.quickfix.QuickFixAdapter
com.iizigo.quickfix.fixer.GotoProperty
com.iizigo.quickfix.fixer.OpenProperty
- All Implemented Interfaces:
IQuickFix
,IQuickFixer
,IMarkerResolution
,IMarkerResolution2
A quick-fix to open the property reference in an editor.
- Author:
- Christopher Mindus
Field Summary
Fields inherited from class com.iizigo.quickfix.fixer.GotoProperty
editorName, isFolder, isRoot, location, property
Constructor Summary
ConstructorDescriptionConstructs the quick-fixer with default constructor for Eclipse.OpenProperty
(GProp<?> property) Creates a quick-fixer to Open the specified property.Method Summary
Methods inherited from class com.iizigo.quickfix.fixer.GotoProperty
getAttributes, run, setMarker
Methods inherited from class com.iizigo.quickfix.QuickFixAdapter
canBeGrouped, findOtherMarkers, getImage, getMarker
Methods inherited from class org.eclipse.ui.views.markers.WorkbenchMarkerResolution
run
Field Details
ID
The ID "OpenProp".- See Also:
Constructor Details
OpenProperty
public OpenProperty()Constructs the quick-fixer with default constructor for Eclipse.OpenProperty
Creates a quick-fixer to Open the specified property.- Parameters:
property
- The property to go to.
Method Details
getID
Gets the ID of the quick-fix.isMarkerRequired
public boolean isMarkerRequired()Indicates if the label returned and also the description depends on the marker selected.- Specified by:
isMarkerRequired
in interfaceIQuickFixer
- Overrides:
isMarkerRequired
in classQuickFixAdapter
- Returns:
- true, to be able to use
getMarker()
to format the label and description.
getLabel
Returns a short label indicating what the resolution will do.- Specified by:
getLabel
in interfaceIMarkerResolution
- Specified by:
getLabel
in interfaceIQuickFixer
- Specified by:
getLabel
in classQuickFixAdapter
- Returns:
- a short label for this resolution
getDescription
Returns optional additional information about the resolution. The additional information will be presented to assist the user in deciding if the selected proposal is the desired choice.- Specified by:
getDescription
in interfaceIMarkerResolution2
- Overrides:
getDescription
in classQuickFixAdapter
- Returns:
- the additional information or
null