<?xml version="1.0" encoding="Windows-1255" ?><Rule name="defineConnectMenu" modifier="additive" declarative="Yes" scope="public" sortGroup="true" id="core.gml2:defineConnectMenu" sort="27" urn="core.gml2:rules.connection.defineConnectMenu.xml" toc="\Rules\Connection rules"><Summary>Defines a context menu to open when the user attempts to connect the given source and target plugs.</Summary><Parameters signature="additive rule::&lt;div style=&quot;padding:6 0 0 16&quot;&gt;&lt;b&gt;defineConnectMenu&lt;/b&gt;(&lt;i&gt;unit&lt;/i&gt;, &lt;i&gt;board&lt;/i&gt;, &lt;i&gt;source&lt;/i&gt;, &lt;i&gt;target&lt;/i&gt;, &lt;i&gt;pos&lt;/i&gt;) &amp;rarr; &lt;q ref=&quot;core.env:KitMenubars!MENU_BAR&quot;&gt;MENU_BAR&lt;/q&gt;&lt;/div&gt;"><Param name="unit" type="core.gml2:Unit!" typeRef="&lt;q ref=&quot;core.gml2:Unit&quot;&gt;Unit&lt;/q&gt;">The unit classifier.</Param><Param name="board" type="core.dev:IBoard!" typeRef="&lt;q ref=&quot;core.dev:IBoard&quot;&gt;IBoard&lt;/q&gt;">The board classifier.</Param><Param name="source" type="core.gml2:Plug!" typeRef="&lt;q ref=&quot;core.gml2:Plug&quot;&gt;Plug&lt;/q&gt;">The source plug classifier.</Param><Param name="target" type="core.gml2:Plug!" typeRef="&lt;q ref=&quot;core.gml2:Plug&quot;&gt;Plug&lt;/q&gt;">The target plug classifier.</Param><Param name="pos" type="Point">The context menu position.</Param></Parameters><Classifiers><Classifier name="unit" type="gml2:Unit" expr="unit"></Classifier><Classifier name="board" type="dev:IBoard" expr="board"></Classifier><Classifier name="ptarget" type="gml2:Element" expr="target.parent">The target parent classifier.</Classifier><Classifier name="psource" type="gml2:Element" expr="source.parent">The source parent classifier.</Classifier><Classifier name="target" type="gml2:Plug" expr="target"></Classifier><Classifier name="source" type="gml2:Plug" expr="source"></Classifier></Classifiers><Return type="env:KitMenubars!MENU_BAR" typeRef="&lt;q ref=&quot;core.env:KitMenubars!MENU_BAR&quot;&gt;MENU_BAR&lt;/q&gt;">Returns the connection menu for the given source and target plugs.</Return><Remarks>&lt;h2&gt;Dependencies&lt;/h2&gt;&lt;table class=&quot;WHITE&quot; style=&quot;width:auto; margin-top:0&quot; cellspacing=&quot;1&quot;&gt;&lt;tr&gt;&lt;td class=&quot;H V&quot;&gt;&lt;i&gt;pre-condition:&lt;/i&gt; &lt;/td&gt;&lt;td class=H&gt;&lt;q ref=&quot;core.gml2:canConnectFrom&quot;&gt;canConnectFrom&lt;/q&gt; == true &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=V&gt;&lt;i&gt;pre-condition:&lt;/i&gt; &lt;/td&gt;&lt;td&gt;&lt;q ref=&quot;core.gml2:canConnectTo&quot;&gt;canConnectTo&lt;/q&gt; == true &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=V&gt;&lt;i&gt;post-condition:&lt;/i&gt; &lt;/td&gt;&lt;td&gt;&lt;q ref=&quot;core.gml2:isCyclicConnection&quot;&gt;isCyclicConnection&lt;/q&gt; == false &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=V&gt;&lt;i&gt;post-action:&lt;/i&gt; &lt;/td&gt;&lt;td&gt;&lt;q ref=&quot;core.gml2:handleConnectMenu&quot;&gt;handleConnectMenu&lt;/q&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
		&lt;h2&gt;Behavior&lt;/h2&gt;
		The behavior defines the context menu to display when the user attempts to connect a given source and target plugs.
		The menu is defined declaratively using the standard &lt;q ref=&quot;core.gml2:MenuRulesSyntax&quot;&gt;menus syntax&lt;/q&gt;.</Remarks><Copyright>(c) SAP AG 2003-2006. All rights reserved.</Copyright>
<Topics>
</Topics>
</Rule>