org.netbeans.modules.refactoring.java/1 1.37.0 1

org.netbeans.modules.refactoring.java.spi
Class DiffElement

java.lang.Object
  extended by org.netbeans.modules.refactoring.spi.SimpleRefactoringElementImplementation
      extended by 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.


Field Summary
 
Fields inherited from interface org.netbeans.modules.refactoring.spi.RefactoringElementImplementation
GUARDED, NORMAL, READ_ONLY, WARNING
 
Method Summary
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)
           
 
Methods inherited from class org.netbeans.modules.refactoring.spi.SimpleRefactoringElementImplementation
getStatus, isEnabled, openInEditor, setStatus, showPreview, undoChange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 Element
fileObject - fileObject corresponding to this Element
modification -
Returns:
ModificationResult corresponding to this change

org.netbeans.modules.refactoring.java/1 1.37.0 1

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.