Class ProjectChange
- java.lang.Object
-
- com.inductiveautomation.ignition.designer.project.ProjectChange
-
public class ProjectChange extends java.lang.Object
Given to a project in order to apply all changes pulled from the Gateway, along with the choices made on resource conflicts.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProjectChange.ConflictChoice
-
Constructor Summary
Constructors Constructor Description ProjectChange(java.util.List<ProjectDiff> diffs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProjectChange.ConflictChoice
getChoice(ChangeOperation op)
java.util.List<ProjectDiff>
getProjectDiffs()
boolean
isEmpty()
void
putChoice(ChangeOperation op, ProjectChange.ConflictChoice choice)
-
-
-
Constructor Detail
-
ProjectChange
public ProjectChange(@Nullable java.util.List<ProjectDiff> diffs)
-
-
Method Detail
-
getProjectDiffs
@Nonnull public java.util.List<ProjectDiff> getProjectDiffs()
-
getChoice
public ProjectChange.ConflictChoice getChoice(ChangeOperation op)
- Returns:
- a
ProjectChange.ConflictChoice
if the givenChangeOperation
had a conflict, or remote if there was no conflict.
-
putChoice
public void putChoice(ChangeOperation op, ProjectChange.ConflictChoice choice)
-
isEmpty
public boolean isEmpty()
- Returns:
- true if all of the diffs in this change are empty.
-
-