Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ve-dev] Specifying allocation

Hi VE Team,

I want to specify allocation for ULCFiller as follows:

ULCFiller.createRigidArea(new Dimension(50,50));

I have created the following xmi file:


	<allocation
xsi:type="org.eclipse.jem.internal.instantiation:ParseTreeAllocation">
	  <expression
xsi:type="org.eclipse.jem.internal.instantiation:PTMethodInvocation"
name="createRigidArea">
	    <receiver xsi:type="org.eclipse.jem.internal.instantiation:PTName"
name="com.ulcjava.base.application.ULCFiller"/>
	    <arguments
	           xsi:type="org.eclipse.jem.internal.instantiation:PTClassInstance
Creation" type="com.ulcjava.base.application.util.Dimension">
	    </arguments>
      </expression>
	</allocation>


It generates:

ULCFiller.createRigidArea(new Dimension());


In the above xmi spec, how do I specify arguments (50,50) for Dimension?

Thanks and best regards,

Janak



Back to the top