Class TextFileContentCompositeChange
- java.lang.Object
-
- org.eclipse.ltk.core.refactoring.Change
-
- org.eclipse.ltk.core.refactoring.CompositeChange
-
- com._1c.g5.v8.dt.refactoring.core.ltk.TextFileContentCompositeChange
-
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable
public class TextFileContentCompositeChange extends org.eclipse.ltk.core.refactoring.CompositeChange
SpecialCompositeChange
for unionTextFileContentChange
changes
-
-
Constructor Summary
Constructors Constructor Description TextFileContentCompositeChange(String name, org.eclipse.core.resources.IFile file)
Construct new instance ofTextFileContentCompositeChange
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(org.eclipse.ltk.core.refactoring.Change change)
Adds the given change to the list of children.org.eclipse.ltk.core.refactoring.Change
getAllChange()
GetsChange
contains all changes in text content attribute as one blockorg.eclipse.ltk.core.refactoring.Change
perform(org.eclipse.core.runtime.IProgressMonitor pm)
-
Methods inherited from class org.eclipse.ltk.core.refactoring.CompositeChange
addAll, clear, createUndoChange, dispose, getAffectedObjects, getChildren, getDescriptor, getModifiedElement, getName, getUndoUntilException, initializeValidationData, internalContinueOnCancel, internalHandleException, internalProcessOnCancel, isSynthetic, isValid, markAsSynthetic, merge, remove, setEnabled, toString
-
-
-
-
Constructor Detail
-
TextFileContentCompositeChange
public TextFileContentCompositeChange(String name, org.eclipse.core.resources.IFile file)
Construct new instance ofTextFileContentCompositeChange
- Parameters:
name
- of the refactoring unit, cannot benull
file
- the text file to apply the change to, cannot benull
-
-
Method Detail
-
getAllChange
public org.eclipse.ltk.core.refactoring.Change getAllChange()
GetsChange
contains all changes in text content attribute as one block- Returns:
Change
contains all changes in text content attribute as one block, nevernull
-
add
public void add(org.eclipse.ltk.core.refactoring.Change change)
Adds the given change to the list of children. The change to be added can be null. Adding a "null" change does nothing.Note that this change can union only
TextFileContentChange
children in otherwise exception will be throwed- Overrides:
add
in classorg.eclipse.ltk.core.refactoring.CompositeChange
- Parameters:
change
- the change to add, cannot benull
- Throws:
IllegalArgumentException
- if specified change not extendsTextFileContentChange
-
perform
public org.eclipse.ltk.core.refactoring.Change perform(org.eclipse.core.runtime.IProgressMonitor pm) throws org.eclipse.core.runtime.CoreException
- Overrides:
perform
in classorg.eclipse.ltk.core.refactoring.CompositeChange
- Throws:
org.eclipse.core.runtime.CoreException
-
-