Class ProjectDifference


  • @OpenApi
    public final class ProjectDifference
    extends java.lang.Object
    Project difference data.
    See Also:
    MergeUtil
    • Field Detail

      • mTargetProject

        private final Project mTargetProject
      • mLockRunner

        private final com.nomagic.magicdraw.merge.LockRunner mLockRunner
      • mLastVersion

        private final boolean mLastVersion
      • mDiffRunner

        private final com.nomagic.magicdraw.diff.DiffRunner mDiffRunner
      • mOpenedDiagramsIds

        private final java.util.List<java.lang.String> mOpenedDiagramsIds
      • mActiveDiagramId

        private final java.lang.String mActiveDiagramId
      • mMerge

        private final boolean mMerge
    • Constructor Detail

      • ProjectDifference

        ProjectDifference​(Project targetProject,
                          ProjectDescriptor targetAbsolute,
                          boolean lastVersion,
                          @CheckForNull
                          com.nomagic.magicdraw.merge.LockRunner lockRunner,
                          com.nomagic.magicdraw.diff.DiffRunner diffRunner,
                          java.util.List<java.lang.String> openedDiagramsIds,
                          @CheckForNull
                          java.lang.String activeDiagramId,
                          boolean merge)
    • Method Detail

      • getTargetProject

        Project getTargetProject()
      • isLastVersion

        boolean isLastVersion()
      • getLockRunner

        @CheckForNull
        com.nomagic.magicdraw.merge.LockRunner getLockRunner()
      • getDiffRunner

        public com.nomagic.magicdraw.diff.DiffRunner getDiffRunner()
      • getOpenedDiagramsIds

        java.util.List<java.lang.String> getOpenedDiagramsIds()
      • isMerge

        boolean isMerge()
      • getActiveDiagramId

        @CheckForNull
        java.lang.String getActiveDiagramId()
      • getSourceChanges

        @OpenApi
        public java.util.Set<Change> getSourceChanges()
        Get source changes - changes between ancestor and source.
        Returns:
        source changes.
      • getTargetChanges

        @OpenApi
        public java.util.Set<Change> getTargetChanges()
        Get target changes - changes between ancestor and target. There are changes nn the case of 2-way merge, as ancestor and target are the same.
        Returns:
        target changes.
      • getChanges

        @OpenApi
        public java.util.Set<? extends Change> getChanges()
        Get all changes - changes between both contributors and the ancestor project.
        Returns:
        all changes.