Search Results for

    Show / Hide Table of Contents

    Studio application initializers

    Integration API makes easy to execute code when SDL Trados Studio starts so you can initialize your plugin. All you need to do is implement IApplicationInitializer interface, from Sdl.Desktop.IntegrationApi namespace and decorate your class with ApplicationInitializerAttribute. If you fail to implement IApplicationInitializer an exception will be thrown, but if you omit the ApplicationInitializerAttribute your plugin will simply be ignored when SDL Trados Studio Starts.

    Example

    The following example demonstrates a simple plugin data initialization. This plugin measures the time since SDL Trados Studio has been opened and if you worked less than required displays a warning MessageBox.

    This example also demonstrates how to cleanup when SDL Trados Studio exits. All you have to do is subscribe to Application.Closing event. You can use CancelEventArgs to prevent SDL Trados Studio from closing.

    • Improve this Doc

    On this page

    Back to top Generated by DocFX