Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ve-dev] URI for a structural feature in override.


Hi Janak,

I'm not clear on the question. where exactly in the override file do you want to ref the feature. And I don't understand how that relates to inverse maint adapter. Your question about the inv. maint. basically says return the first guy that has its "constraint component" feature set to me.

Rich


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

01/31/2006 11:59 AM

Please respond to
Discussions people developing code for the Visual Editor project <ve-dev@xxxxxxxxxxx>

To
"ve-Dev@Eclipse. Org" <ve-dev@xxxxxxxxxxx>
cc
Subject
[ve-dev] URI for a structural feature in override.





Dear VE Team,

In the following override file for a Java class
com.ulcjava.base.application.ULCRootPane, I want to access a structural
feature "contentPane".

How do I specify the URI for it so that I can use to obtain an EReference
using
InverseMaintenanceAdapter.getFirstReferencedBy(component,
JavaInstantiation.getReference(component,
JFCConstants.SF_CONSTRAINT_COMPONENT))

<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:org.eclipse.ve.internal.cde.decorators="http:///org/eclipse/ve/int
ernal/cde/decorators.ecore"
   xmlns:org.eclipse.ve.internal.cde.utility="http:///org/eclipse/ve/intern
al/cde/utility.ecore"
xmlns:org.eclipse.ve.internal.jcm="http:///org/eclipse/ve/internal/jcm.ecore
"
   xmlns:codeGenHelpers="platform:/plugin/org.eclipse.ve.java.core/override
s/codegenHelpers.ecore"
   xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmlns:event="event.xmi">

  <event:Add  featureName="eAnnotations">

   <addedEObjects xsi:type="codeGenHelpers:CodeGenHelperClass"
source="codegen.CodeGenHelperClass"
                       expDecoder="com.canoo.ulc.visualeditor/com.canoo.ulc.visualeditor.co
degen.ULCRootPaneDecoder"
                       modelled="true"/>
 </event:Add>


 <event:Add  featureName="eStructuralFeatures">
   <addedEObjects xsi:type="ecore:EReference" name="components"
                                                         eType="ecore:EClass
java:/com.ulcjava.base.application#ULCComponent"
                                            upperBound="1" unsettable="false" changeable="true"
                                            containment="false">
                                  <eAnnotations
xsi:type="org.eclipse.ve.internal.cde.decorators:PropertyDescriptorDecorator
"  hidden="true"/>
       <eAnnotations
xsi:type="org.eclipse.ve.internal.jcm:BeanFeatureDecorator"
linkType="CHILD"/>
   </addedEObjects>
 </event:Add>
<event:Add  featureName="eStructuralFeatures">
   <addedEObjects xsi:type="ecore:EReference" name="contentPane"
                                                         eType="ecore:EClass
java:/com.ulcjava.base.application#ULCComponent"
                                            upperBound="1" unsettable="false" changeable="true"
                                            containment="false">
       <eAnnotations
xsi:type="org.eclipse.ve.internal.jcm:BeanFeatureDecorator"
linkType="CHILD"/>
   </addedEObjects>
 </event:Add>
 <event:Add  featureName="eStructuralFeatures">
   <addedEObjects xsi:type="ecore:EReference" name="menuBar"
unsettable="true">
     <eAnnotations
xsi:type="org.eclipse.ve.internal.jcm:BeanFeatureDecorator"
linkType="CHILD"/>
   </addedEObjects>
 </event:Add>
</xmi:XMI>


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


Back to the top