org.eclipse.xtext.ui.editor.quickfix
Class MarkerResolutionGenerator.ResolutionAdapter

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator.ResolutionAdapter
All Implemented Interfaces:
org.eclipse.ui.IMarkerResolution, org.eclipse.ui.IMarkerResolution2
Enclosing class:
MarkerResolutionGenerator

public class MarkerResolutionGenerator.ResolutionAdapter
extends java.lang.Object
implements org.eclipse.ui.IMarkerResolution2


Constructor Summary
MarkerResolutionGenerator.ResolutionAdapter(IssueResolution resolution)
           
 
Method Summary
 java.lang.String getDescription()
          Returns optional additional information about the resolution.
 org.eclipse.swt.graphics.Image getImage()
          Returns the image to be displayed in the list of resolutions.
 java.lang.String getLabel()
          Returns a short label indicating what the resolution will do.
 void run(org.eclipse.core.resources.IMarker marker)
          Runs this resolution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkerResolutionGenerator.ResolutionAdapter

public MarkerResolutionGenerator.ResolutionAdapter(IssueResolution resolution)
Method Detail

getLabel

public java.lang.String getLabel()
Description copied from interface: org.eclipse.ui.IMarkerResolution
Returns a short label indicating what the resolution will do.

Specified by:
getLabel in interface org.eclipse.ui.IMarkerResolution
Returns:
a short label for this resolution

run

public void run(org.eclipse.core.resources.IMarker marker)
Description copied from interface: org.eclipse.ui.IMarkerResolution
Runs this resolution.

Specified by:
run in interface org.eclipse.ui.IMarkerResolution
Parameters:
marker - the marker to resolve

getDescription

public java.lang.String getDescription()
Description copied from interface: org.eclipse.ui.IMarkerResolution2
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 interface org.eclipse.ui.IMarkerResolution2
Returns:
the additional information or null

getImage

public org.eclipse.swt.graphics.Image getImage()
Description copied from interface: org.eclipse.ui.IMarkerResolution2
Returns the image to be displayed in the list of resolutions. The image would typically be shown to the left of the display string.

Specified by:
getImage in interface org.eclipse.ui.IMarkerResolution2
Returns:
the image to be shown or null if no image is desired