public class RenameProjectHandler extends java.lang.Object implements RenameHandler, TitledHandler
Modifier and Type | Class and Description |
---|---|
protected static class |
RenameProjectHandler.MyInputValidator |
EP_NAME
Constructor and Description |
---|
RenameProjectHandler() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getActionTitle() |
void |
invoke(Project project,
Editor editor,
PsiFile file,
DataContext dataContext)
Invokes refactoring action from editor.
|
void |
invoke(Project project,
PsiElement [] elements,
DataContext dataContext)
Invokes refactoring action from elsewhere (not from editor).
|
boolean |
isAvailableOnDataContext(DataContext dataContext) |
static boolean |
renameProject(ProjectEx project,
Module module,
java.lang.String newName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isRenaming
public boolean isAvailableOnDataContext(DataContext dataContext)
isAvailableOnDataContext
in interface RenameHandler
public java.lang.String getActionTitle()
getActionTitle
in interface TitledHandler
public void invoke(Project project, Editor editor, PsiFile file, DataContext dataContext)
RefactoringActionHandler
invoke
in interface RefactoringActionHandler
project
- the project in which the refactoring is invoked.editor
- editor that refactoring is invoked infile
- file should correspond to editor
dataContext
- can be null
for some but not all of refactoring action handlers
(it is recommended to pass DataManager.getDataContext()
instead of null
)public void invoke(Project project, PsiElement [] elements, DataContext dataContext)
RefactoringActionHandler
invoke
in interface RefactoringActionHandler
project
- the project in which the refactoring is invoked.elements
- list of elements that refactoring should work on. Refactoring-dependent.dataContext
- can be null
for some but not all of refactoring action handlers
(it is recommended to pass DataManager.getDataContext()
instead of null
)