Class ModelParticipantMergeOperation

    • Constructor Detail

      • ModelParticipantMergeOperation

        protected ModelParticipantMergeOperation​(IWorkbenchPart part,
                                                 ISynchronizationScopeManager manager)
        Create a merge participant operation for the scope of the given manager.
        Parameters:
        part - the workbench part from which the merge was launched or null
        manager - the scope manager
    • Method Detail

      • belongsTo

        public boolean belongsTo​(java.lang.Object family)
        Description copied from class: TeamOperation
        Return whether the job that is running this operation should be considered a member member of the given family. Subclasses can override this method in order to support the family based functionality provided by the IJobManager. By default, false is always returned. Subclasses that override the isKeepOneProgressServiceEntry method do not need to override this method, but instead should override isSameFamilyAs.
        Overrides:
        belongsTo in class TeamOperation
        Parameters:
        family - the family being tested.
        Returns:
        whether the job that is running this operation should be considered a member member of the given family.
      • isPreviewInDialog

        protected boolean isPreviewInDialog()
        Return whether previews should occur in a dialog or in the synchronize view.
        Returns:
        whether previews should occur in a dialog or in the synchronize view
      • getContext

        protected ISynchronizationContext getContext()
        Description copied from class: ModelOperation
        Return the synchronization context for the operation or null if the operation doesn't have one or if it has not yet been created. By default, the method always returns null. Subclasses may override.
        Overrides:
        getContext in class ModelOperation
        Returns:
        the synchronization context for the operation or null
      • getPreviewRequestMessage

        protected java.lang.String getPreviewRequestMessage()
        Description copied from class: ModelOperation
        Return a string to be used in the preview request on the scope prompt or null if a preview of the operation results is not possible. By default, null is returned but subclasses may override.
        Overrides:
        getPreviewRequestMessage in class ModelOperation
        Returns:
        a string to be used in the preview request on the scope prompt or null if a preview of the operation results is not possible
      • createMergeContext

        protected abstract SynchronizationContext createMergeContext()
        Create a merge context for use by this operation. This method is not long running so the operation should not refresh the context or perform other long running operations in this thread. However the context may start initializing in another thread as long as the job used to perform the initialization belongs to the family that matches the context.
        Returns:
        a merge context for use by this operation