Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Custom Stereotype Dialogs

Revision as of 12:51, 13 February 2017 by Rcraddoc.cisco.com (Talk | contribs)

< To: Tigerstripe Extension Points

  • Full name : org.eclipse.tigerstripe.workbench.base.customStereotypeDialog

Purpose : This extension point is designed to allow users to override the "standard" Stereotype Dialogs with replcamenets that implement logic that is specific to the Stereotype. Some Stereotypes may refer to other model elements, or have complex string structures that the user has to enter. By creating custom dialogs, the end-user experience can be enhanced and simplified.

  • Usage :

There are three separate elements that can be provided :

dialog_class : The dialog must extend the class :

org.eclipse.tigerstripe.workbench.ui.AbstractStereotypeInstanceEditDialog. As with other Dialog types, the main method for implementation is :

public Control createDialogArea(Composite parent) .....

Through the protected fields of IStereotypeInstance instance and IStereotypeCapable component, you can access the model using the Tigerstripe Model APIs.

stereotypeName : This should be the name of the Sterotype for whihc this Dialog is valid.

Note : the implemntation of the Dialog is reponsible for determining if it is applicable for the given Model Component - use the "accprt() method if the Dialog only works on some component types.

Back to the top