Class TextFileContentChange

  • All Implemented Interfaces:
    org.eclipse.core.runtime.IAdaptable

    public class TextFileContentChange
    extends org.eclipse.ltk.core.refactoring.TextFileChange
    Wrap TextFileChange to use in TextFileContentCompositeChange
    • Field Summary

      • Fields inherited from class org.eclipse.ltk.core.refactoring.TextFileChange

        FORCE_SAVE, KEEP_SAVE_STATE, LEAVE_DIRTY
    • Constructor Summary

      Constructors 
      Constructor Description
      TextFileContentChange​(String name, org.eclipse.core.resources.IFile file)
      Creates a new wrap of TextFileChange for the given file.
    • Method Summary

      • Methods inherited from class org.eclipse.ltk.core.refactoring.TextFileChange

        acquireDocument, commit, createUndoChange, createUndoChange, dispose, getAffectedObjects, getFile, getModifiedElement, getSaveMode, initializeValidationData, isDocumentAcquired, isDocumentModified, isValid, needsSaving, performEdits, releaseDocument, setSaveMode
      • Methods inherited from class org.eclipse.ltk.core.refactoring.TextChange

        addEdit, addTextEditChangeGroup, addTextEditGroup, getCurrentContent, getCurrentContent, getCurrentDocument, getEdit, getPreviewContent, getPreviewContent, getPreviewContent, getPreviewDocument, getPreviewEdit, getPreviewEdits, getTextEditChangeGroups, perform, setEdit, setKeepPreviewEdits
      • Methods inherited from class org.eclipse.ltk.core.refactoring.TextEditBasedChange

        addChangeGroup, getChangeGroups, getKeepPreviewEdits, getName, getTextType, hasOneGroupCategory, setEnabled, setTextType
      • Methods inherited from class org.eclipse.ltk.core.refactoring.Change

        getAdapter, getDescriptor, getParent, isEnabled, setEnabledShallow
    • Constructor Detail

      • TextFileContentChange

        public TextFileContentChange​(String name,
                                     org.eclipse.core.resources.IFile file)
        Creates a new wrap of TextFileChange for the given file.
        Parameters:
        name - the change name mainly used to render the change in the UI, cannot by null
        file - the file this text change operates on, cannot by null