Class SynchronizationOperation

    • Constructor Detail

      • SynchronizationOperation

        protected SynchronizationOperation​(ISynchronizePageConfiguration configuration,
                                           Object[] elements)
        Create a synchronize operation that operations on the given elements
        Parameters:
        configuration - the configuration for the page the operation is associated with
        elements - the elements to be operated on
    • Method Detail

      • getConfiguration

        public ISynchronizePageConfiguration getConfiguration()
        Return the configuration for the page from which this operation was launched.
        Returns:
        the configuration for the page from which this operation was launched
      • getContext

        protected ISynchronizationContext getContext()
        Return the synchronization context associated with this action.
        Returns:
        the synchronization context associated with this action
      • getElements

        public Object[] getElements()
        Return the model elements that are the target of this operation.
        Returns:
        the model elements that are the target of this operation
      • shouldRun

        public boolean shouldRun()
        Make shouldRun public so the result can be used to provide handler enablement
        Overrides:
        shouldRun in class TeamOperation
        Returns:
        whether the operation should be run.
      • getSaveable

        public SaveableComparison getSaveable()
        Return the saveable that this operation will write its results to or null if the operation does not buffer its results. By default, null is returned but subclasses may override.
        Returns:
        the saveable that this operation will write its results to or null