public class ExtractVariableRefactoring
extends org.eclipse.ltk.core.refactoring.Refactoring
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
LOG |
| Constructor and Description |
|---|
ExtractVariableRefactoring() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendDeclaration(ISourceAppender section,
ITextRegion expressionRegion) |
org.eclipse.ltk.core.refactoring.RefactoringStatus |
checkFinalConditions(org.eclipse.core.runtime.IProgressMonitor pm) |
org.eclipse.ltk.core.refactoring.RefactoringStatus |
checkInitialConditions(org.eclipse.core.runtime.IProgressMonitor pm) |
org.eclipse.ltk.core.refactoring.Change |
createChange(org.eclipse.core.runtime.IProgressMonitor pm) |
protected DocumentRewriter.Section |
getDeclarationSection(int declarationOffset,
int callerOffset,
DocumentRewriter.Section callerSection) |
java.lang.String |
getName() |
java.lang.String |
getVariableName() |
protected void |
handleException(java.lang.Exception exc,
StatusWrapper status) |
boolean |
initialize(XtextEditor editor,
XExpression expression) |
boolean |
isFinal() |
void |
setFinal(boolean isFinal) |
void |
setVariableName(java.lang.String variableName) |
org.eclipse.ltk.core.refactoring.RefactoringStatus |
validateNewVariableName(java.lang.String newVariableName) |
public boolean initialize(XtextEditor editor, XExpression expression)
public java.lang.String getVariableName()
public void setVariableName(java.lang.String variableName)
public org.eclipse.ltk.core.refactoring.RefactoringStatus validateNewVariableName(java.lang.String newVariableName)
public boolean isFinal()
public void setFinal(boolean isFinal)
public java.lang.String getName()
getName in class org.eclipse.ltk.core.refactoring.Refactoringpublic org.eclipse.ltk.core.refactoring.RefactoringStatus checkInitialConditions(org.eclipse.core.runtime.IProgressMonitor pm)
throws org.eclipse.core.runtime.CoreException,
org.eclipse.core.runtime.OperationCanceledException
checkInitialConditions in class org.eclipse.ltk.core.refactoring.Refactoringorg.eclipse.core.runtime.CoreExceptionorg.eclipse.core.runtime.OperationCanceledExceptionpublic org.eclipse.ltk.core.refactoring.RefactoringStatus checkFinalConditions(org.eclipse.core.runtime.IProgressMonitor pm)
throws org.eclipse.core.runtime.CoreException,
org.eclipse.core.runtime.OperationCanceledException
checkFinalConditions in class org.eclipse.ltk.core.refactoring.Refactoringorg.eclipse.core.runtime.CoreExceptionorg.eclipse.core.runtime.OperationCanceledExceptionprotected DocumentRewriter.Section getDeclarationSection(int declarationOffset, int callerOffset, DocumentRewriter.Section callerSection)
public org.eclipse.ltk.core.refactoring.Change createChange(org.eclipse.core.runtime.IProgressMonitor pm)
throws org.eclipse.core.runtime.CoreException,
org.eclipse.core.runtime.OperationCanceledException
createChange in class org.eclipse.ltk.core.refactoring.Refactoringorg.eclipse.core.runtime.CoreExceptionorg.eclipse.core.runtime.OperationCanceledExceptionprotected void handleException(java.lang.Exception exc,
StatusWrapper status)
protected void appendDeclaration(ISourceAppender section, ITextRegion expressionRegion) throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationException