public interface SchemeImporter<T extends Scheme>
Modifier and Type | Method and Description |
---|---|
default java.lang.String |
getAdditionalImportInfo(T scheme)
Called after the scheme has been imported.
|
default VirtualFile |
getImportFile() |
java.lang.String [] |
getSourceExtensions() |
T |
importScheme(Project project,
VirtualFile selectedFile,
T currentScheme,
SchemeFactory<T> schemeFactory)
Import a scheme from the given virtual file
|
java.lang.String [] getSourceExtensions()
T importScheme(Project project, VirtualFile selectedFile, T currentScheme, SchemeFactory<T> schemeFactory) throws SchemeImportException
project
- projectselectedFile
- The input file to import from.currentScheme
- source scheme to be updated or to base import onschemeFactory
- The factory to create a scheme with a given name. Importer implementation should use this method
to create a scheme to which it will save imported values.SchemeImportException
SchemeFactory
default java.lang.String getAdditionalImportInfo(T scheme)
scheme
- The imported scheme.default VirtualFile getImportFile()
null
, file chooser is shown.