Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
|
This example plugin defines an extension point and collects extensions.
In this example the extension point concept is used to define an extension point and extend the plugin functionality with it. The GUI consists of a view with two group boxes. In the right box the user can insert text in an input text field. The left box is the area where extensions for this plugin are displayed.
In the plugin.xml file of this application the extension point is defined as follows:
The according schema (changetext.exsd) defines attributes for extensions of this extension point like a description.
In the view of this plugin the registry is used to find all available extensions. For each found descriptor a push button is created that holds the functionality extension.
These created push buttons are connected to the ChangeText method that alters the input text (in the way the extension defines) and outputs the changed text in another text field.
The plugin can now be extended by extensions provided by other plugins.
View complete source files:
[Extension Points] [Next: Extension Contribution] [BlueBerry Examples]