public abstract class CreateServiceClassFixBase extends java.lang.Object implements IntentionAction
Modifier and Type | Class and Description |
---|---|
static class |
CreateServiceClassFixBase.PsiDirectoryListCellRenderer |
Modifier and Type | Field and Description |
---|---|
static Key<CreateClassKind> |
SERVICE_CLASS_KIND |
static Key<java.lang.Boolean> |
SERVICE_IS_SUBCLASS |
static Key<PsiDirectory> |
SERVICE_ROOT_DIR |
EMPTY_ARRAY
Constructor and Description |
---|
CreateServiceClassFixBase() |
Modifier and Type | Method and Description |
---|---|
protected static PsiClass |
createClassInOuterImpl(java.lang.String name,
PsiClass outerClass,
java.lang.String superClassName) |
protected static PsiClass |
createClassInRoot(java.lang.String classFQN,
CreateClassKind classKind,
PsiDirectory rootDir,
PsiElement contextElement,
java.lang.String superClassName) |
protected static PsiJavaCodeReferenceElement |
findTopmostReference(PsiJavaCodeReferenceElement referenceElement) |
protected static PsiDirectory[] |
getModuleRootDirs(Module module) |
static PsiDirectory |
getOrCreatePackageDirInRoot(java.lang.String packageName,
PsiDirectory rootDir) |
protected static boolean |
isQualifierInProject(java.lang.String classFQN,
Project project) |
static void |
positionCursor(PsiClass psiClass) |
boolean |
startInWriteAction()
Indicate whether this action should be invoked inside write action.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFamilyName, getText, invoke, isAvailable
getElementToMakeWritable
public static final Key<PsiDirectory> SERVICE_ROOT_DIR
public static final Key<CreateClassKind> SERVICE_CLASS_KIND
public static final Key<java.lang.Boolean> SERVICE_IS_SUBCLASS
public boolean startInWriteAction()
IntentionAction
false
if, e.g., a modal dialog is shown inside the action.
If false is returned the action itself is responsible for starting write action
when needed, by calling Application.runWriteAction(Runnable)
.startInWriteAction
in interface IntentionAction
startInWriteAction
in interface WriteActionAware
true
if the intention requires a write action, false
otherwise.protected static PsiJavaCodeReferenceElement findTopmostReference(PsiJavaCodeReferenceElement referenceElement)
protected static boolean isQualifierInProject(java.lang.String classFQN, Project project)
protected static PsiClass createClassInOuterImpl(java.lang.String name, PsiClass outerClass, java.lang.String superClassName)
public static PsiDirectory getOrCreatePackageDirInRoot(java.lang.String packageName, PsiDirectory rootDir)
protected static PsiClass createClassInRoot(java.lang.String classFQN, CreateClassKind classKind, PsiDirectory rootDir, PsiElement contextElement, java.lang.String superClassName)
protected static PsiDirectory[] getModuleRootDirs(Module module)
public static void positionCursor(PsiClass psiClass)