| org.netbeans.modules.gsf.api.InstantRenamer
InstantRenamer | public interface InstantRenamer (Code) | | Provide an implementation that will help with instant renaming (in place refactoring)
author: Tor Norbye |
getRenameRegions | Set<OffsetRange> getRenameRegions(CompilationInfo info, int caretOffset)(Code) | | Return a Set of regions that should be renamed if the element under the caret offset is
renamed.
|
isRenameAllowed | boolean isRenameAllowed(CompilationInfo info, int caretOffset, String[] explanationRetValue)(Code) | | Check whether instant-renaming is allowed for the symbol under the given caret offset,
and return true iff it is.
Parameters: info - The compilation context to be used for parse info Parameters: caretOffset - The specific caret location we want to check Parameters: explanationRetValue - An array of length 1 whose first element can be setto a short description string (explaining why renaming is not allowed) whichmay be displayed to the user. |
|
|