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 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.
      • 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)
      • 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.