Package org.jetbrains.mps.openapi.module
Class SRepositoryListenerBase
- java.lang.Object
-
- org.jetbrains.mps.openapi.module.SRepositoryListenerBase
-
- All Implemented Interfaces:
SRepositoryListener
public abstract class SRepositoryListenerBase extends Object implements SRepositoryListener
A convenient empty implementation of the SRepositoryListener interface.
-
-
Constructor Summary
Constructors Constructor Description SRepositoryListenerBase()
-
Method Summary
All Methods Instance Methods Concrete 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)
void
repositoryCommandStarted(SRepository repository)
void
updateFinished(SRepository repository)
void
updateStarted(SRepository repository)
-
-
-
Method Detail
-
moduleAdded
public void moduleAdded(@NotNull SModule module)
- Specified by:
moduleAdded
in interfaceSRepositoryListener
-
beforeModuleRemoved
public void beforeModuleRemoved(@NotNull SModule module)
- Specified by:
beforeModuleRemoved
in interfaceSRepositoryListener
-
moduleRemoved
public void moduleRemoved(@NotNull SModuleReference module)
- Specified by:
moduleRemoved
in interfaceSRepositoryListener
-
commandStarted
public void commandStarted(SRepository repository)
Description copied from interface:SRepositoryListener
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.- Specified by:
commandStarted
in interfaceSRepositoryListener
- See Also:
CommandListener.commandStarted()
-
commandFinished
public void commandFinished(SRepository repository)
- Specified by:
commandFinished
in interfaceSRepositoryListener
- See Also:
CommandListener.commandFinished()
-
updateStarted
public void updateStarted(SRepository repository)
- Specified by:
updateStarted
in interfaceSRepositoryListener
-
updateFinished
public void updateFinished(SRepository repository)
- Specified by:
updateFinished
in interfaceSRepositoryListener
-
repositoryCommandStarted
public void repositoryCommandStarted(SRepository repository)
- Specified by:
repositoryCommandStarted
in interfaceSRepositoryListener
-
repositoryCommandFinished
public void repositoryCommandFinished(SRepository repository)
- Specified by:
repositoryCommandFinished
in interfaceSRepositoryListener
-
-