org.netbeans.spi.editor.hints/0 1.24.0 7

org.netbeans.spi.editor.hints
Interface Fix

All Known Subinterfaces:
EnhancedFix

public interface Fix

Allows to perform a change when the user selects the hint.


Method Summary
 String getText()
          The text displayed to the user as the fix description.
 ChangeInfo implement()
          Correct the source, doing whatever the hint says it will do.
 

Method Detail

getText

String getText()
The text displayed to the user as the fix description.

Returns:

implement

ChangeInfo implement()
                     throws Exception
Correct the source, doing whatever the hint says it will do.

Returns:
A ChangeInfo instance if invoking the hint caused changes that should change the editor selection/caret position, or null if no such change was made, or proper caret positioning cannot be determined.
Throws:
Exception

org.netbeans.spi.editor.hints/0 1.24.0 7

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.