Hi,
I've added several parameters to a method via automation. The trouble is that the order of these parameters in EA isn't the same as I used when into EA.
For example:
I have 3 parameters: par1, par2, par3
and I want to add them to myMethod:
parameters = myMethod.getParameters();
parameters.AddNew(par1.getName(),par1.getType());
par1.update();
parameters.refresh();
parameters.AddNew(par2.getName(),par2.getType());
par2.update();
parameters.refresh();
parameters.AddNew(par3.getName(),par3.getType());
par3.update();
parameters.refresh();
Although the parameters were added in the par1,par2,par3 order, EA seem to ignore this order and I can see those parameters in a rather random order.
Could anybody, please, tell me how to fix it?
PS: ...and still all the parameters are visible only when displaying the method properties. In Project Browser I can only see the first parameter (the first parameter in the EA ordering...). I'm quite confused.
