<div>Hello,</div>
<div> </div>
<div>I have tried to use these methods, however it always gives me the same message: Invalid Number of Parameters. </div>
<div> </div>
<div>The code below shows you what I am trying to do. The parameter "Atom" is the element kind. </div>
<div> <br> </div>
<div> <em>public void invokeEx(JBuilder builder, JBuilderObject focus, Collection selected, int intParam) {</em></div>
<div><em></em> </div>
<div><em> JBuilderModel mdl=(JBuilderModel)focus;<br> JBuilderAtom a=mdl.createNewAtom("Atom");<br> javax.swing.JOptionPane.showMessageDialog(null,"Created a="+a);</em></div>
<div><em></em> </div>
<div><em>}</em></div>
<div><em></em> </div>
<div>Can anyone please help me to find out what am I doing wrong?</div>
<div>The error message is attached below.</div>
<div> </div>
<div>Thanks in advance,</div>
<div> </div>
<div>Magda</div>
<div> </div>
<div><span class="gmail_quote">On 12/12/06, <b class="gmail_sendername">Zoltan Molnar</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:zolmol@isis.vanderbilt.edu" target="_blank">zolmol@isis.vanderbilt.edu
</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div><span><font face="Arial" color="#0000ff" size="2">Hi,</font></span></div>
<div><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div><span><font face="Arial" color="#0000ff" size="2">You have to use the:</font></span></div>
<div><span></span><span><font face="Arial" color="#0000ff" size="2"><font color="#ff0000">public JBuilderModel createNewModel(String partName)</font></font></span></div>
<div><span><font face="Arial" color="#0000ff" size="2"><font color="#ff0000">public JBuilderAtom createNewAtom(String partName)</font></font></span></div>
<div><span><font face="Arial" color="#ff0000" size="2">public JBuilderModelReference createNewModelReference(String refPartName, JBuilderObject refTo)</font></span></div>
<div><span><font face="Arial" color="#ff0000" size="2">public JBuilderConnection createNewConnection(String connName, JBuilderObject source, JBuilderObject destination)</font></span></div>
<div><span><font face="Arial" color="#ff0000" size="2"></font></span> </div>
<div><span><font face="Arial" color="#0000ff" size="2"> methods of JBuilderModel found in JBuilderModel.java.</font></span></div>
<div><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div><span><font face="Arial" color="#0000ff" size="2">Zoli</font></span></div>
<div><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<blockquote style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<div></div>
<div lang="en-us" dir="ltr" align="left"><font face="Tahoma" size="2">-----Original Message-----<br><b>From:</b> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:gme-users-bounces@list.isis.vanderbilt.edu" target="_blank">
gme-users-bounces@list.isis.vanderbilt.edu</a> [mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:gme-users-bounces@list.isis.vanderbilt.edu" target="_blank">gme-users-bounces@list.isis.vanderbilt.edu
</a>] <b>On Behalf Of </b>seyamak karimi<br><b>Sent:</b> Sunday, December 10, 2006 9:27 AM<br><b>To:</b> gme-users<br><b>Subject:</b> [gme-users] help<br><br></font></div>
<div>Dear GME users </div>
<div>Hi All </div>
<div>Please help me about write BON for adding atom to model without drag and drop atom from partbrowser of GME. </div>
<div><font color="#ff0000"><strong>Note</strong></font>: I designed my metamodel and I can create my model using GUI of the GME and drag and drop atom from partbrowser but I want design my model with BON(to prefer java interface) and without drag and drop atom from partbrowser of GME and I try writing a BON(java interface) for this context but I can't successful.
</div>
<div>please see my attach file </div><b>
<div><font color="#0000ff">Please help me and send sample code</font></div></b><font color="#0000ff"></font></blockquote></div>
<div>Best regards </div>
<div>s.karimi </div>
<p>
<hr size="1">
Cheap Talk? <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com" target="_blank">Check out</a> Yahoo! Messenger's low PC-to-Phone call rates.
<p></p><br>_______________________________________________<br>gme-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:gme-users@list.isis.vanderbilt.edu" target="_blank">gme-users@list.isis.vanderbilt.edu
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users" target="_blank">http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users</a><br><br><br>
<p></p>
<p></p>
<p></p>
<p></p></p></blockquote></div><br>