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 Abstract Methods Deprecated Methods Modifier and Type Method Description void
beforeModuleRemoved(SModule module)
void
commandFinished(SRepository repository)
void
commandStarted(SRepository repository)
Notifications about commands in aModelAccess
associated with the repository.void
moduleAdded(SModule module)
void
moduleRemoved(SModuleReference module)
void
repositoryCommandFinished(SRepository repository)
Deprecated.void
repositoryCommandStarted(SRepository repository)
Deprecated.void
updateFinished(SRepository repository)
Deprecated.void
updateStarted(SRepository repository)
Deprecated.
-
-
-
Method Detail
-
moduleRemoved
void moduleRemoved(@NotNull SModuleReference module)
-
commandStarted
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
void commandFinished(SRepository repository)
- See Also:
CommandListener.commandFinished()
-
updateStarted
@Deprecated void updateStarted(SRepository repository)
Deprecated.
-
updateFinished
@Deprecated void updateFinished(SRepository repository)
Deprecated.
-
repositoryCommandStarted
@Deprecated void repositoryCommandStarted(SRepository repository)
Deprecated.
-
repositoryCommandFinished
@Deprecated void repositoryCommandFinished(SRepository repository)
Deprecated.
-
-