Class ProjectCompositeChange
- java.lang.Object
-
- org.eclipse.ltk.core.refactoring.Change
-
- org.eclipse.ltk.core.refactoring.CompositeChange
-
- com._1c.g5.v8.dt.lcore.refactoring.ProjectCompositeChange
-
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable
public class ProjectCompositeChange extends org.eclipse.ltk.core.refactoring.CompositeChange
CompositeChange
for union all changes affected the same project
-
-
Constructor Summary
Constructors Constructor Description ProjectCompositeChange(String projectName, org.eclipse.ltk.core.refactoring.Change[] changes, boolean changeForbidden)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.eclipse.ltk.core.refactoring.Change[]
getProjectChange(Collection<org.eclipse.ltk.core.refactoring.Change> changes)
CreatesProjectCompositeChange
by the changes.String
getProjectName()
Gets the name of refactoring projectboolean
isEnabled()
boolean
isForbidden()
Gets status of perform opertationvoid
setEnabled(boolean enabled)
-
Methods inherited from class org.eclipse.ltk.core.refactoring.CompositeChange
add, addAll, clear, createUndoChange, dispose, getAffectedObjects, getChildren, getDescriptor, getModifiedElement, getName, getUndoUntilException, initializeValidationData, internalContinueOnCancel, internalHandleException, internalProcessOnCancel, isSynthetic, isValid, markAsSynthetic, merge, perform, remove, toString
-
-
-
-
Constructor Detail
-
ProjectCompositeChange
public ProjectCompositeChange(String projectName, org.eclipse.ltk.core.refactoring.Change[] changes, boolean changeForbidden)
Constructor- Parameters:
projectName
- name of the refactoring project, can't benull
changes
-Change
s affect the same project, can't benull
changeForbidden
-true
if changes is forbidden for perform,false
otherwise
-
-
Method Detail
-
getProjectChange
public static org.eclipse.ltk.core.refactoring.Change[] getProjectChange(Collection<org.eclipse.ltk.core.refactoring.Change> changes)
CreatesProjectCompositeChange
by the changes. This methods groupsChange
s by its affected project. If all changes affect the same project empty array will be returned- Parameters:
changes
- collection of theChange
s, can't benull
- Returns:
- array of
ProjectCompositeChange
or empty array if all changes affect to the same project, nevernull
-
getProjectName
public String getProjectName()
Gets the name of refactoring project- Returns:
- name of the refactoring project, can't be
null
-
isForbidden
public boolean isForbidden()
Gets status of perform opertation- Returns:
true
if changes is forbidden for perform,false
otherwise
-
isEnabled
public boolean isEnabled()
- Overrides:
isEnabled
in classorg.eclipse.ltk.core.refactoring.Change
-
setEnabled
public void setEnabled(boolean enabled)
- Overrides:
setEnabled
in classorg.eclipse.ltk.core.refactoring.CompositeChange
-
-