| org.netbeans.modules.javascript.hints.spi.PreviewableFix
PreviewableFix | public interface PreviewableFix extends Fix(Code) | | This interface is implemented by Fix implementations that are also "previewable";
these fixes can provide their implementation as a list of edit operations that
can be used to compute diff views etc.
author: Tor Norbye |
Method Summary | |
boolean | canPreview() Return true if this fix can provide a fix.
(This isn't determined only by implementing fix, since some fix implementations
may be previewable in some cases and not in others. | EditList | getEditList() Return a list of edits which the
PreviewableFix.implement method will
perform. |
canPreview | boolean canPreview()(Code) | | Return true if this fix can provide a fix.
(This isn't determined only by implementing fix, since some fix implementations
may be previewable in some cases and not in others. For example, the CamelCaseNames
fix can preview name fixes for local variables, but not for global renames.)
true iff this fix can generate a preview. |
getEditList | EditList getEditList() throws Exception(Code) | | Return a list of edits which the
PreviewableFix.implement method will
perform. You can return null (or an empty list) here, but if you
provide a list of edits, the IDE will use the edit list to offer
a preview of the hint.
This method will not be called for interactive hints (hints which
return true from
PreviewableFix.isInteractive .)
an EditList containing edits that can preview |
|
|