Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » annotates="//@members.14",how can get?
annotates="//@members.14",how can get? [message #616816] Tue, 30 October 2007 11:20
Eclipse UserFriend
Originally posted by: caye5200.yahoo.com.cn

hello, the view.xml following :
<?xml version="1.0" encoding="ASCII" ?>
<diagrams id="org.eclipse.ve.internal.cdm.primarydiagram"
visualInfos="//@annotations.18/@visualInfos.0
//@annotations.24/@visualInfos.0 //@annotations.23/@visualInfos.0
//@annotations.8/@visualInfos.0 //@annotations.3/@visualInfos.0
//@annotations.6/@visualInfos.0 //@annotations.22/@visualInfos.0
//@annotations.19/@visualInfos.0 //@annotations.16/@visualInfos.0
//@annotations.15/@visualInfos.0 //@annotations.12/@visualInfos.0
//@annotations.10/@visualInfos.0 //@annotations.9/@visualInfos.0
//@annotations.7/@visualInfos.0 //@annotations.1/@visualInfos.0
//@annotations.21/@visualInfos.0 //@annotations.17/@visualInfos.0
//@annotations.14/@visualInfos.0 //@annotations.13/@visualInfos.0
//@annotations.11/@visualInfos.0 //@annotations.5/@visualInfos.0
//@annotations.4/@visualInfos.0 //@annotations.2/@visualInfos.0
//@annotations.0/@visualInfos.0 //@annotations.25/@visualInfos.0" />
- <annotations xsi:type="org.eclipse.ve.internal.cdm:AnnotationEMF"
annotates="//@members.14">
<keyedValues xsi:type="ecore:EStringToStringMapEntry"
key="org.eclipse.ve.internal.cde.core.nameincomposition" value="SP01005016"
/>
- <visualInfos diagram="//@diagrams.0">
<keyedValues xsi:type="org.eclipse.ve.internal.cdm:KeyedBoolean"
key="org.eclipse.ve.internal.cdm.model.visualconstraintkey" value="true" />
</visualInfos>
</annotations>
- <annotations xsi:type="org.eclipse.ve.internal.cdm:AnnotationEMF"
annotates="//@members.3">
<keyedValues xsi:type="ecore:EStringToStringMapEntry"
key="org.eclipse.ve.internal.cde.core.nameincomposition" value="SP01005005"
/>
- <visualInfos diagram="//@diagrams.0">
<keyedValues xsi:type="org.eclipse.ve.internal.cdm:KeyedBoolean"
key="org.eclipse.ve.internal.cdm.model.visualconstraintkey" value="true" />
</visualInfos>
</annotations>
I hava get the model :lastModel = modelBuilder.getModelRoot(),
but
now i want know the annotates the order ,like SP01005016, members.14,
SP01005005,members.3.
i can get the value,but can not get the annotates ,the code like:

lastModel = modelBuilder.getModelRoot();
EList annotations=lastModel.getAnnotations();
for(int aIndex=0;aIndex<annotations.size();aIndex++){
AnnotationEMFImpl annImpl=(AnnotationEMFImpl)
annotations.get(aIndex);
EMap keyedValue=annImpl.getKeyedValues();
String value=(String)
keyedValue.get("org.eclipse.ve.internal.cde.core.nameincomposition ");
}
how i can annotates ? please help me!
Previous Topic:recommended GUI builder
Next Topic:Radio Button Groups
Goto Forum:
  


Current Time: Tue Mar 19 09:44:54 GMT 2024

Powered by FUDForum. Page generated in 0.02060 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top