This interface is implemented by a Structure Library.
interface IStructureLibrary {
// Properties
${autoRecompile}: boolean;
// Methods
${saveAll}(): void;
${recompile}(): void;
${openStructureFolder}(filename: string): void;
${newFile}(format: ${StructureFormat}): ${ISourceFile};
${addFile}(filename: string): void;
${addFiles}(files: string[]): void;
${openFile}(filename: string, position?: ${ITextPosition}): ${ISourceFile};
${removeFile}(filename: string): void;
${findFileByType}(typename: string): string;
${getFiles}(extension: string): string[];
}
// This interface is not available in managed environment
// This interface is not available in native environment
autoRecompile: boolean;
// This property is not available in managed environment
// This property is not available in native environment
Auto recompile source files if changed.
saveAll(): void;
// This method is not available in managed environment
// This method is not available in native environment
Save all opened structure definition files.
recompile(): void;
// This method is not available in managed environment
// This method is not available in native environment
Compile all structure definition files.
openStructureFolder(filename: string): void;
// This method is not available in managed environment
// This method is not available in native environment
filenameShows structure definition file in Explorer.
newFile(format: ${StructureFormat}): ${ISourceFile};
// This method is not available in managed environment
// This method is not available in native environment
formatA reference to created and opened source file.
Create new structure definition file in a given format and open it for editing.
addFile(filename: string): void;
// This method is not available in managed environment
// This method is not available in native environment
filenameAdd a file to the structure library.
addFiles(files: string[]): void;
// This method is not available in managed environment
// This method is not available in native environment
filesAdd files to the structure library.
openFile(filename: string, position?: ${ITextPosition}): ${ISourceFile};
// This method is not available in managed environment
// This method is not available in native environment
filenamepositionA reference to an opened structure definition file.
Open a given file for editing.
removeFile(filename: string): void;
// This method is not available in managed environment
// This method is not available in native environment
filenameRemove a file from the structure library.
findFileByType(typename: string): string;
// This method is not available in managed environment
// This method is not available in native environment
typenameA full path to a structure definition file or null if the type is not found.
Find a structure definition file that has declaration for a given type.
getFiles(extension: string): string[];
// This method is not available in managed environment
// This method is not available in native environment
extensionA (possibly empty) list of file paths.
Returns a list of structure definition files from the library that match a given extension.