Package jetbrains.mps.project.io
Class DescriptorIOFacade
- java.lang.Object
 - 
- jetbrains.mps.project.io.DescriptorIOFacade
 
 
- 
- All Implemented Interfaces:
 CoreComponent
public class DescriptorIOFacade extends Object implements CoreComponent
 
- 
- 
Constructor Summary
Constructors Constructor Description DescriptorIOFacade()DescriptorIOFacade(MacroHelper.Source macroHelperSource) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddispose()DescriptorIO<? extends ModuleDescriptor>fromFileType(IFile file)static DescriptorIOFacadegetInstance()Deprecated.It'sCoreComponent, obtain proper instance though platformvoidinit()booleanisModuleDescriptorFile(IFile file)ModuleDescriptorreadFromModuleFile(MacroHelper macroHelper, IFile moduleFile)FIXME it's odd to declare DescriptorIOException provided ModuleDescriptor keeps loadException in case of load failure.DescriptorIOProviderstandardProvider() 
 - 
 
- 
- 
Constructor Detail
- 
DescriptorIOFacade
public DescriptorIOFacade()
 
- 
DescriptorIOFacade
public DescriptorIOFacade(MacroHelper.Source macroHelperSource)
 
 - 
 
- 
Method Detail
- 
fromFileType
public DescriptorIO<? extends ModuleDescriptor> fromFileType(IFile file)
 
- 
standardProvider
public DescriptorIOProvider standardProvider()
 
- 
getInstance
@Deprecated public static DescriptorIOFacade getInstance()
Deprecated.It'sCoreComponent, obtain proper instance though platform 
- 
readFromModuleFile
public ModuleDescriptor readFromModuleFile(MacroHelper macroHelper, IFile moduleFile) throws DescriptorIOException
FIXME it's odd to declare DescriptorIOException provided ModuleDescriptor keeps loadException in case of load failure. Have to align exception handling, i.e. either throw them as regular Java exception, or keep it within the ModuleDescriptor object and get clean read/write methods then.- Throws:
 DescriptorIOException- now, only in casemoduleFileargument is not a recognized module file (useto tell good from bad
 
- 
isModuleDescriptorFile
public boolean isModuleDescriptorFile(IFile file)
 
- 
init
public void init()
- Specified by:
 initin interfaceCoreComponent
 
- 
dispose
public void dispose()
- Specified by:
 disposein interfaceCoreComponent
 
 - 
 
 -