You are here: User Customizations > Creating Plug-Ins for Innovator > IApplicationComponent Interface

IApplicationComponent Interface

The Innovator framework uses the IApplicationComponent interface for sending messages to the plug-in.

Realizing the Interface

A plug-in must contain precisely one class that realizes the IApplicationComponent. The Innovator framework uses the class for sending messages to the plug-in if relevant events are triggered. The framework creates an instance of the class when opening an Innovator model. This instance exists throughout the lifecycle of the model and is used for all messages which are triggered in the context of this model.

Note: The plug-in itself never instantiates its own interface realization class.

IApplicationComponent.Description

The Description property is used for describing plug-ins.

ComponentDescription Description { get; }

The ComponentDescription class contains the following properties:

Note: The Description property is not currently evaluated and is planned for future use.

IApplicationComponent.RequestHandler

RequestHandler is the IApplicationComponent interface's central method which processes inflowing messages from the framework.

void RequestHandler(ModelDockSite, Request)

Check

Each plug-in gets a message from the Check type immediately upon user login to the model. A plug-in should verify whether it can be run with the model upon edit. If the model does not fulfill the necessary prerequisites, then the plug-in should deliver a significant message in the Error property in the Request structure as a result. The plug-in is then not loaded and remains inactive throughout the Innovator interface runtime. It is not possible to load the plug-in at a later stage.

Note: A plug-in that can be executed in all circumstances does not need to process the message.

Note:

See the MID.Innovator.Plugin.Sample.CheckRequest sample for editing the Check message.

OpenModel

If the plug-in was not deactivated when the Check message was being edited, then it gets an OpenModel message. The only option to extend the interface is by:

 

 

© 1986-2014 MID GmbH Nuremberg Germany. DIN EN 9001 certified. All rights reserved.