Package org.csstudio.opibuilder.util
Class WidgetDescriptor
java.lang.Object
org.csstudio.opibuilder.util.WidgetDescriptor
This class help to hold the related information for a widget which are acquired from the extension. The widget model
and editpart will be loaded lazily, which also make the widget plugin loaded lazily.
-
Constructor Summary
ConstructorDescriptionWidgetDescriptor
(IConfigurationElement element, String typeID, String name, String description, String iconPath, String category, String pluginId, String onlineHelpHtml) -
Method Summary
Modifier and TypeMethodDescriptionfinal String
final String
final String
getName()
final String
final String
final AbstractBaseEditPart
final AbstractWidgetModel
-
Constructor Details
-
WidgetDescriptor
public WidgetDescriptor(IConfigurationElement element, String typeID, String name, String description, String iconPath, String category, String pluginId, String onlineHelpHtml) - Parameters:
element
- The configurationElement which hold thetypeID
- The typeID of the widget.name
- The name of the widgeticonPath
- The relative icon path of the widget relative to its plugincategory
- The category of the widgetpluginId
- The pluginID where the widget belongs to.
-
-
Method Details
-
getWidgetModel
- Returns:
- the model of the widget.
-
getWidgetEditpart
- Returns:
- the editpart of the widget.
-
getTypeID
- Returns:
- the typeID
-
getName
- Returns:
- the name
-
getIconPath
- Returns:
- the iconPath
-
getCategory
- Returns:
- the category
-
getPluginId
- Returns:
- the pluginId
-
getDescription
-
getOnlineHelpHtml
-