Class that describes a plugin.
Exemple #1
0
 static void LoadDescriptor( string fullName ) {
     try {
         XDocument descriptorXml = XDocument.Load( fullName );
         PluginDescriptor descriptor = new PluginDescriptor( descriptorXml.Root );
         descriptor.PluginDescriptorFileName = fullName;
         if( descriptor.LoaderType == PluginLoaderType.Python && pythonPluginLoader == null ) {
             Logger.Log( LogType.Warning,
                         "PluginManager: Could not load {0}: Python support is disabled.",
                         fullName );
         } else {
             PluginDescriptors.Add( descriptor.Name.ToLower(), descriptor );
         }
     } catch( Exception ex ) {
         Logger.Log( LogType.Error,
                     "PluginManager: Failed to load plugin descriptor from {0}: {1}", fullName, ex );
     }
 }