Skip to main content

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


Hi Janak,
        Please give this allocation a try -

<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:PTClassInstanceCreation" type="com.ulcjava.base.application.util.Dimension">
                                <arguments xsi:type="org.eclipse.jem.internal.instantiation:PTNumberLiteral" token="50"/>
                                <arguments xsi:type="org.eclipse.jem.internal.instantiation:PTNumberLiteral" token="50"/>
                 </arguments>
   </_expression_>
</allocation>


Regards,
Sri.



"Janak Mulani" <janak.mulani@xxxxxxxxx>
Sent by: ve-dev-bounces@xxxxxxxxxxx

12/27/2005 06:37 AM

Please respond to
Discussions people developing code for the Visual Editor project

To
"ve-Dev@Eclipse. Org" <ve-dev@xxxxxxxxxxx>
cc
Subject
[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

_______________________________________________
ve-dev mailing list
ve-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ve-dev


Back to the top