public class RenameElementAction extends BaseRefactoringAction
AnAction.TransparentUpdate
ACTIONS_KEY, EMPTY_ARRAY
Constructor and Description |
---|
RenameElementAction() |
Modifier and Type | Method and Description |
---|---|
RefactoringActionHandler |
getHandler(DataContext dataContext) |
protected boolean |
hasAvailableHandler(DataContext dataContext) |
protected boolean |
isAvailableForLanguage(Language language) |
boolean |
isAvailableInEditorOnly() |
protected boolean |
isAvailableOnElementInEditorAndFile(PsiElement element,
Editor editor,
PsiFile file,
DataContext context) |
protected boolean |
isEnabledOnDataContext(DataContext dataContext) |
boolean |
isEnabledOnElements(PsiElement [] elements) |
actionPerformed, disableOnCompiledElement, findRefactoringTargetInEditor, getActionName, getElementAtCaret, getPsiElementArray, isAvailableForFile, isAvailableOnElementInEditorAndFile, isHidden, update
addTextOverride, applyTextOverride, beforeActionPerformedUpdate, copyFrom, copyShortcutFrom, displayTextInToolbar, getEventProject, getShortcutSet, getTemplatePresentation, getTemplateText, isDefaultIcon, isEnabledInModalContext, isInInjectedContext, isTransparentUpdate, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, setDefaultIcon, setEnabledInModalContext, setInjectedContext, setShortcutSet, startInTransaction, toString, unregisterCustomShortcutSet, useSmallerFontForTextInToolbar
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isDumbAware
public boolean isAvailableInEditorOnly()
isAvailableInEditorOnly
in class BaseRefactoringAction
public boolean isEnabledOnElements(PsiElement [] elements)
isEnabledOnElements
in class BaseRefactoringAction
public RefactoringActionHandler getHandler(DataContext dataContext)
getHandler
in class BaseRefactoringAction
protected boolean hasAvailableHandler(DataContext dataContext)
hasAvailableHandler
in class BaseRefactoringAction
protected boolean isEnabledOnDataContext(DataContext dataContext)
isEnabledOnDataContext
in class BaseRefactoringAction
protected boolean isAvailableForLanguage(Language language)
isAvailableForLanguage
in class BaseRefactoringAction
protected boolean isAvailableOnElementInEditorAndFile(PsiElement element, Editor editor, PsiFile file, DataContext context)
isAvailableOnElementInEditorAndFile
in class BaseRefactoringAction