Package org.jetbrains.mps.openapi.module
Interface SRepositoryListener
-
- All Known Subinterfaces:
SRepositoryAttachListener
- All Known Implementing Classes:
SRepositoryContentAdapter
,SRepositoryListenerBase
public interface SRepositoryListener
Receives notifications whenever a repository gets updated. All method calls are made within write action.- See Also:
ModelAccess.checkWriteAccess()
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
beforeModuleRemoved(SModule module)
default void
commandFinished(SRepository repository)
default void
commandStarted(SRepository repository)
Notifications about commands in aModelAccess
associated with the repository.default void
moduleAdded(SModule module)
default void
moduleRemoved(SModuleReference module)
default void
repositoryCommandFinished(SRepository repository)
Deprecated, for removal: This API element is subject to removal in a future version.default void
repositoryCommandStarted(SRepository repository)
Deprecated, for removal: This API element is subject to removal in a future version.default void
updateFinished(SRepository repository)
Deprecated, for removal: This API element is subject to removal in a future version.default void
updateStarted(SRepository repository)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Method Detail
-
moduleRemoved
default void moduleRemoved(@NotNull SModuleReference module)
-
commandStarted
default void commandStarted(SRepository repository)
Notifications about commands in aModelAccess
associated with the repository. It's convenient to have command notifications right in SRepositoryListener implementation, like RepositoryChangeTracker (the one where all changes within a command are collected), rather than have distinctCommandListener
. UnlikeCommandListener
, gives context repository to facilitate use of the same listener instance among different repositories.- See Also:
CommandListener.commandStarted()
-
commandFinished
default void commandFinished(SRepository repository)
- See Also:
CommandListener.commandFinished()
-
updateStarted
@Deprecated(forRemoval=true) default void updateStarted(SRepository repository)
Deprecated, for removal: This API element is subject to removal in a future version.
-
updateFinished
@Deprecated(forRemoval=true) default void updateFinished(SRepository repository)
Deprecated, for removal: This API element is subject to removal in a future version.
-
repositoryCommandStarted
@Deprecated(forRemoval=true) default void repositoryCommandStarted(SRepository repository)
Deprecated, for removal: This API element is subject to removal in a future version.
-
repositoryCommandFinished
@Deprecated(forRemoval=true) default void repositoryCommandFinished(SRepository repository)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-