Interface for package discovery and registration.
// Resolve IPackageRegistry to discover registered package library paths. const registry = this.pluginSystem.findInterface( Editor.IPackageRegistry.interfaceId ) as Editor.IPackageRegistry; if (Editor.isNull(registry)) { console.log('IPackageRegistry not available'); return; } const libraryPaths = registry.getLibraryPaths(); console.log('Library paths count:', libraryPaths.length); for (const p of libraryPaths) { console.log(' Library path:', p.toString()); } Copy
// Resolve IPackageRegistry to discover registered package library paths. const registry = this.pluginSystem.findInterface( Editor.IPackageRegistry.interfaceId ) as Editor.IPackageRegistry; if (Editor.isNull(registry)) { console.log('IPackageRegistry not available'); return; } const libraryPaths = registry.getLibraryPaths(); console.log('Library paths count:', libraryPaths.length); for (const p of libraryPaths) { console.log(' Library path:', p.toString()); }
Protected
Snap Hidden
Static
Returns the name of this object's type.
Returns true if the object is of the specified type.
Returns true if this object refers to the same instance as the given object.
NEW
Interface for package discovery and registration.
Example