public final class DiffElement extends SimpleRefactoringElementImplementation
GUARDED, NORMAL, READ_ONLY, WARNING
Modifier and Type | Method and Description |
---|---|
static DiffElement |
create(ModificationResult.Difference diff,
FileObject fileObject,
ModificationResult modification)
Factory method for DiffElement
|
String |
getDisplayText() |
Lookup |
getLookup() |
protected String |
getNewFileContent() |
FileObject |
getParentFile() |
PositionBounds |
getPosition() |
String |
getText() |
void |
performChange() |
void |
setEnabled(boolean enabled) |
getStatus, isEnabled, openInEditor, setStatus, showPreview, undoChange
public String getDisplayText()
public Lookup getLookup()
public void setEnabled(boolean enabled)
setEnabled
in interface RefactoringElementImplementation
setEnabled
in class SimpleRefactoringElementImplementation
public PositionBounds getPosition()
public String getText()
public void performChange()
public FileObject getParentFile()
protected String getNewFileContent()
getNewFileContent
in class SimpleRefactoringElementImplementation
public static DiffElement create(ModificationResult.Difference diff, FileObject fileObject, ModificationResult modification)
diff
- diff instance corresponding to thid ElementfileObject
- fileObject corresponding to this Elementmodification
-