org.netbeans.modules.refactoring.java.spi
Class DiffElement
java.lang.Object
org.netbeans.modules.refactoring.spi.SimpleRefactoringElementImplementation
org.netbeans.modules.refactoring.java.spi.DiffElement
- All Implemented Interfaces:
- RefactoringElementImplementation
public final class DiffElement
- extends SimpleRefactoringElementImplementation
Implementatation of RefactoringElementImplementation specific to refactoring
in java files.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getDisplayText
public String getDisplayText()
getLookup
public Lookup getLookup()
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabled in interface RefactoringElementImplementation- Overrides:
setEnabled in class SimpleRefactoringElementImplementation
getPosition
public PositionBounds getPosition()
getText
public String getText()
performChange
public void performChange()
getParentFile
public FileObject getParentFile()
getNewFileContent
protected String getNewFileContent()
- Overrides:
getNewFileContent in class SimpleRefactoringElementImplementation
create
public static DiffElement create(ModificationResult.Difference diff,
FileObject fileObject,
ModificationResult modification)
- Factory method for DiffElement
- Parameters:
diff - diff instance corresponding to thid ElementfileObject - fileObject corresponding to this Elementmodification -
- Returns:
- ModificationResult corresponding to this change