public abstract class CreateClassFromUsageBaseFix extends BaseIntentionAction
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOG |
protected CreateClassKind |
myKind |
EMPTY_ARRAY
Constructor and Description |
---|
CreateClassFromUsageBaseFix(CreateClassKind kind,
PsiJavaCodeReferenceElement refElement) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFamilyName()
Returns the name of the family of intentions.
|
protected PsiJavaCodeReferenceElement |
getRefElement() |
protected java.lang.String |
getSuperClassName(PsiJavaCodeReferenceElement element) |
protected abstract java.lang.String |
getText(java.lang.String varName) |
boolean |
isAvailable(Project project,
Editor editor,
PsiFile file)
Checks whether this intention is available at a caret offset in the file.
|
canModify, getText, setText, startInWriteAction, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
invoke
getElementToMakeWritable
protected static final Logger LOG
protected CreateClassKind myKind
public CreateClassFromUsageBaseFix(CreateClassKind kind, PsiJavaCodeReferenceElement refElement)
protected abstract java.lang.String getText(java.lang.String varName)
public boolean isAvailable(Project project, Editor editor, PsiFile file)
IntentionAction
project
- the project in which the availability is checked.editor
- the editor in which the intention will be invoked.file
- the file open in the editor.true
if the intention is available, false
otherwise.public java.lang.String getFamilyName()
IntentionAction
IntentionManager.registerIntentionAndMetaData(IntentionAction, String...)
protected PsiJavaCodeReferenceElement getRefElement()
protected java.lang.String getSuperClassName(PsiJavaCodeReferenceElement element)