Package com.iizigo.quickfix.fixer
Class RenameResource
java.lang.Object
org.eclipse.ui.views.markers.WorkbenchMarkerResolution
com.iizigo.quickfix.QuickFixAdapter
com.iizigo.quickfix.fixer.RenameResource
- All Implemented Interfaces:
- IQuickFixer,- org.eclipse.ui.IMarkerResolution,- org.eclipse.ui.IMarkerResolution2
Fixes a problem with the resource name by renaming the resource. This is typically used when a file is located in a project folder and has a name that is not valid, e.g. wrong file extension, or a name that is invalid.
- Author:
- Christopher Mindus
- Field SummaryFields
- Constructor SummaryConstructors
- Method Summary- Methods inherited from class com.iizigo.quickfix.QuickFixAdapter- canBeGrouped, findOtherMarkers, getImage, getMarker, isMarkerRequired, setMarker- Methods inherited from class org.eclipse.ui.views.markers.WorkbenchMarkerResolution- run
- Field Details- IDThe ID "RenameResource".- See Also:
 
 
- Constructor Details- RenameResourcepublic RenameResource()
 
- Method Details- runpublic void run- (org.eclipse.core.resources.IMarker marker) Runs this resolution.- Specified by:
- runin interface- org.eclipse.ui.IMarkerResolution
- Specified by:
- runin interface- IQuickFixer
- Specified by:
- runin class- QuickFixAdapter
- Parameters:
- marker- the marker to resolve.
 
- getLabelReturns a short label indicating what the resolution will do.- Specified by:
- getLabelin interface- org.eclipse.ui.IMarkerResolution
- Specified by:
- getLabelin interface- IQuickFixer
- Specified by:
- getLabelin class- QuickFixAdapter
- Returns:
- a short label for this resolution
 
- getDescriptionReturns 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:
- getDescriptionin interface- org.eclipse.ui.IMarkerResolution2
- Overrides:
- getDescriptionin class- QuickFixAdapter
- Returns:
- the additional information or null