Package jetbrains.mps.library
Class LibraryInitializer
- java.lang.Object
 - 
- jetbrains.mps.library.LibraryInitializer
 
 
- 
- All Implemented Interfaces:
 CoreComponent,RepositoryReader<LibraryContributor>
public final class LibraryInitializer extends Object implements CoreComponent, RepositoryReader<LibraryContributor>
An implementation of RepositoryReader, which is lazy (in a way that it tries not load the same module twice) At the same time it creates SLibrary for each pathRepositoryContributor.getPaths()returns. FIXME need to separate up these two. 
- 
- 
Constructor Summary
Constructors Constructor Description LibraryInitializer(SRepositoryExt repository) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddispose()List<ModulesMiner.ModuleHandle>getModuleHandles()Deprecated.voidinit()voidload(List<LibraryContributor> contributors)voidloadRefreshed(List<LibraryContributor> contributors)Deprecated.useload(List)insteadvoidunload(List<LibraryContributor> contributors)voidupdate()Deprecated.please use one-step loading methods:loadRefreshed(java.util.List<jetbrains.mps.library.contributor.LibraryContributor>)orload(java.util.List<jetbrains.mps.library.contributor.LibraryContributor>)voidupdate(boolean refreshFiles)Deprecated. 
 - 
 
- 
- 
Constructor Detail
- 
LibraryInitializer
public LibraryInitializer(@NotNull SRepositoryExt repository)
 
 - 
 
- 
Method Detail
- 
init
public void init()
- Specified by:
 initin interfaceCoreComponent
 
- 
dispose
public void dispose()
- Specified by:
 disposein interfaceCoreComponent
 
- 
loadRefreshed
@Deprecated public void loadRefreshed(List<LibraryContributor> contributors)
Deprecated.useload(List)insteadEDT is required- Specified by:
 loadRefreshedin interfaceRepositoryReader<LibraryContributor>
 
- 
load
public void load(List<LibraryContributor> contributors)
- Specified by:
 loadin interfaceRepositoryReader<LibraryContributor>
 
- 
unload
public void unload(List<LibraryContributor> contributors)
- Specified by:
 unloadin interfaceRepositoryReader<LibraryContributor>
 
- 
update
@Deprecated public void update()
Deprecated.please use one-step loading methods:loadRefreshed(java.util.List<jetbrains.mps.library.contributor.LibraryContributor>)orload(java.util.List<jetbrains.mps.library.contributor.LibraryContributor>) 
- 
update
@Deprecated public void update(boolean refreshFiles)
Deprecated.not intended to be called explicitly anymore.- Parameters:
 refreshFiles- if true, then the caller needs to handle EDT lock, because deeper the synchronous recursive file system refreshLibRoots would be called. FIXME need to get rid of that synchronous refreshLibRoots- See Also:
 update()
 
- 
getModuleHandles
@Deprecated public List<ModulesMiner.ModuleHandle> getModuleHandles()
Deprecated. 
 - 
 
 -