Termbase list - what does the green/red icon mean?

Hi,


I'm making a termbase plugin, and when I add it to the list, a red icon appears next to it (and then of course I can't use it). When I add an Excel TB provider, this icon is green (see screenshot).

What properties influence this icon? What determines if the plugin is OK or not? Where can I find more information about the error/missing things?

Thanks!

Agnes

  • Hello Agnes

    The red icon appears when the term provider is not properly initialized in the MyTerminologyProviderFactory class. Assuming that my term provider class is called MyTerminologyProvider, which is the standard name given by the MS Visual Studio term provider project type, the factory class would have to look as shown below. Then I am getting a green icon, and the term provider is initialized properly.


    namespace SDL_Terminology_Provider_Plug_in
    {
    [TerminologyProviderFactory(Id = "My_Terminology_Provider_Id", Name = "My_Terminology_Provider_Name", Description = "My_Terminology_Provider_Description")]
    public class MyTerminologyProviderFactory : ITerminologyProviderFactory
    {
    #region "create_provider"
    //Create the terminology provider and pass the provider uri, which is the glossary text file name and path
    public ITerminologyProvider CreateTerminologyProvider(Uri terminologyProviderUri, ITerminologyProviderCredentialStore credentials)
    {
    MyTerminologyProvider _terminologyProvider = new MyTerminologyProvider(terminologyProviderUri.ToString());
    return _terminologyProvider;
    }
    #endregion

    public bool SupportsTerminologyProviderUri(Uri terminologyProviderUri)
    {
    return true;
    }
    }
    }
  • Hi Ziad,
    thank you for the answer! To my knowledge it was initialized properly, and I haven't done anything to it, but this problem mysteriously solved itself. But then that means I was surely missing some property in the ITerminologyProvider itself, or that Studio wasn't refreshing the settings properly.
    Thanks,
    Agnes