Steps:
- Create (in your own Profile package) a "temporary" custom stereotype
~InterfaceBlockthat extends (has a Generalization to) the stereotype InterfaceBlock - Give your
~InterfaceBlockstereotype a propertyoriginal:InterfaceBlock - Create a Customization also called
~InterfaceBlockand set itscustomizationTargetto be your stereotype~InterfaceBlock(easy using drag n' drop) - Set the 'keyword' of that Customization to be '~interfaceBlock' so when applied it will show as «~interfaceBlock»
- Now make sure your Customization for
~InterfaceBlockfor extends (has a Generalization to) the tool's existing Customization forInterfaceBlock(which you can do using search).- Note how the existing one already has
hideMetatype=true
- Note how the existing one already has
- !!!SAVE THEN CLOSE YOUR PROJECT then RE-OPEN YOUR PROJECT!!!
Did you CLOSE then RE-OPEN YOUR PROJECT? No? Then CLOSE then RE-OPEN YOUR PROJECT!
One easy way (until full tool support comes) to use your custom stereotype is to create a regular InterfaceBlock using the menus then use refactor to convert it to an ~InterfaceBlock. Then use the specification dialog to set the tagged value for the original.
Ensure that every provided/required Feature of each ~InterfaceBlock is the opposite of its original InterfaceBlock, and that if the name of the original is
Name that its matching ~InterfaceBlock is ~Name
Beware that once tool support comes you will have to migrate all of your custom ~InterfaceBlock instances, but you can find them easily from the specification dialog for the custom stereotype.
See also this tip:
