Interface IBmWorkspaceSynchronizationListener

  • All Known Implementing Classes:
    RightsEditorController

    public interface IBmWorkspaceSynchronizationListener
    Listener class is intended to be used then workspace synchronization operations are performed.
    • Method Summary

      All Methods Instance Methods Default Methods Deprecated Methods 
      Modifier and Type Method Description
      default void changeBatchProcessingFinished()
      Called when the batch processing is being finished
      default void changeBatchProcessingStarted()
      Called when the batch processing is being started
      default void delayedChangeDetected()
      Called when a resource change is detected which is not processed automatically but delayed until the processing is requested explicitly.
      default void fileDeleted​(org.eclipse.core.runtime.IPath path)
      This method is being called right before the real file removal of the workspace resource is performed
      default void handleInSync​(boolean syncActive, List<org.eclipse.core.resources.IResource> affectedResources)
      Called when synchronized phase are activated or deactivated.
      default void onClose()
      Deprecated.
      Service orchestrator must be used to subscribe to lifecycle events.
      default void resourceDeleted​(org.eclipse.core.resources.IFile file)
      Called then before real file delete of workspace resource are performed.
      default void resourceSaved​(org.eclipse.core.resources.IFile file, Collection<IBmObject> objects)
      Called then objects are saved to workspace resources.
      default void resourceSynchronized​(org.eclipse.core.resources.IFile file)
      Called then resources are synchronized with BM..
    • Method Detail

      • resourceSynchronized

        default void resourceSynchronized​(org.eclipse.core.resources.IFile file)
        Called then resources are synchronized with BM..
        Parameters:
        file - - file processed.
        topObjects - - the set of top objects.
      • resourceSaved

        default void resourceSaved​(org.eclipse.core.resources.IFile file,
                                   Collection<IBmObject> objects)
        Called then objects are saved to workspace resources. objects contains list of changed objects.
        Parameters:
        files - - list of saved files.
        objects - - the set of objects.
      • resourceDeleted

        default void resourceDeleted​(org.eclipse.core.resources.IFile file)
        Called then before real file delete of workspace resource are performed.
        Parameters:
        file - - file to be deleted.
        objects - - set of deleted top objects.
      • fileDeleted

        default void fileDeleted​(org.eclipse.core.runtime.IPath path)
        This method is being called right before the real file removal of the workspace resource is performed
        Parameters:
        path - Path to be deleted. May not be null
      • handleInSync

        default void handleInSync​(boolean syncActive,
                                  List<org.eclipse.core.resources.IResource> affectedResources)
        Called when synchronized phase are activated or deactivated.
        Parameters:
        syncActive - Sync activity state.
        affectedResources - List of sync affected resources (added/removed/merged)
      • changeBatchProcessingStarted

        default void changeBatchProcessingStarted()
        Called when the batch processing is being started
      • changeBatchProcessingFinished

        default void changeBatchProcessingFinished()
        Called when the batch processing is being finished
      • delayedChangeDetected

        default void delayedChangeDetected()
        Called when a resource change is detected which is not processed automatically but delayed until the processing is requested explicitly.
      • onClose

        @Deprecated
        default void onClose()
        Deprecated.
        Service orchestrator must be used to subscribe to lifecycle events.
        Method is called then provider is intented to be closed. Happen then model is intended to be closed.