Date: Fri, 29 Mar 2024 09:28:46 +0100 (CET) Message-ID: <841642866.1725.1711700926095@nm-docs> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1724_1143008157.1711700926094" ------=_Part_1724_1143008157.1711700926094 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
A pattern=E2=80=99s
A Target = owns:
A Target = is passed to the pattern=E2=80=99s method com.no= magic.magicdraw.patterns.AbstractPattern.applyPattern(Target, AbstractPatternProperties). I= t is also accessible from pattern=E2=80=99s properties com.nomagic.magicdraw.= patterns.AbstractPatternProperties.
Open API provides a helper class com.nomagic.magicdraw.patterns.PatternHelper= with useful methods for patterns. For more details about methods of this c= lass, see javadoc.
Every implementation of a specif= ic pattern must provide:
This information is encapsulated in the com.nomagic.magicdraw.patterns.PatternInfo= class.
PatternInfo= em> is used only for the pattern registration in the com.nomagic.magicdraw.patterns= .PatternsManager. Other usages are internal and do not impact spec= ific patterns.
Every pattern must provide main properties and optionally can have exten= ded properties. Main properties are used for the user input from the first = pattern wizard page. Extended properties may be used for storing the user i= nput from other wizard pages.
A specific pattern must provide implementation of this abstract class an= d override the AbstractPatternProperties.configure= PropertyManager() method. If a specific pattern has some extended = properties, it must override the AbstractP= atternProperties.configureExtendedPropertyManager() metho= d. Both these methods must configure some property manager =E2=80=93 add or= remove properties from it.
Every pattern must provide one or more panels for the patterns wizard. T= he first wizard page is always used for displaying main pattern properties.= Other pages are optional and may be the pattern specific. The com.nomagic.magic= draw.patterns.AbstractPanelContainer class is used for providing t= he pattern wizard information:
A specific pattern must provide a pattern implementation class. This cla= ss must extend <= em>AbstractPattern and implement Abstrac= tPattern.applyPattern(Target, AbstractPatternProper= ties) and AbstractPat= tern.getCategorizedName() methods.