[gme-users] help
seyamak karimi
seyamak_karimi at yahoo.com
Thu Dec 14 11:37:40 CST 2006
Dear.Magda
I have this problem and I try for solving this error but I can't....
what is your opinion?
I think, using from vc++ for this subject
Magda Fayan <mfayan at gmail.com> wrote:
Hello,
I have tried to use these methods, however it always gives me the same message: Invalid Number of Parameters.
The code below shows you what I am trying to do. The parameter "Atom" is the element kind.
public void invokeEx(JBuilder builder, JBuilderObject focus, Collection selected, int intParam) {
JBuilderModel mdl=(JBuilderModel)focus;
JBuilderAtom a=mdl.createNewAtom("Atom");
javax.swing.JOptionPane.showMessageDialog(null,"Created a="+a);
}
Can anyone please help me to find out what am I doing wrong?
The error message is attached below.
Thanks in advance,
Magda
On 12/12/06, Zoltan Molnar <zolmol at isis.vanderbilt.edu > wrote: Hi,
You have to use the:
public JBuilderModel createNewModel(String partName)
public JBuilderAtom createNewAtom(String partName)
public JBuilderModelReference createNewModelReference(String refPartName, JBuilderObject refTo)
public JBuilderConnection createNewConnection(String connName, JBuilderObject source, JBuilderObject destination)
methods of JBuilderModel found in JBuilderModel.java.
Zoli
-----Original Message-----
From: gme-users-bounces at list.isis.vanderbilt.edu [mailto:gme-users-bounces at list.isis.vanderbilt.edu ] On Behalf Of seyamak karimi
Sent: Sunday, December 10, 2006 9:27 AM
To: gme-users
Subject: [gme-users] help
Dear GME users
Hi All
Please help me about write BON for adding atom to model without drag and drop atom from partbrowser of GME.
Note: 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.
please see my attach file
Please help me and send sample code
Best regards
s.karimi
---------------------------------
Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.
_______________________________________________
gme-users mailing list
gme-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
_______________________________________________
gme-users mailing list
gme-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
---------------------------------
Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20061214/6eedfe5b/attachment.htm
More information about the gme-users
mailing list