Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[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>




Back to the top