|
|
|
|
Re: GMF Palette Stack Tool Group [message #1061696 is a reply to message #1061691] |
Mon, 03 June 2013 14:10 |
serhat gezgin Messages: 243 Registered: January 2013 Location: Izmir |
Senior Member |
|
|
Hi,
i dont look gmfmap cause i generate gmf from epsilon and dont know much gmfmap
u know which relations i must look on gmfmap ?
my gmfmap is;
<?xml version="1.0" encoding="ASCII"?>
<gmfmap:Mapping
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmlns:gmfmap="http://www.eclipse.org/gmf/2008/mappings"
xmlns:gmftool="http://www.eclipse.org/gmf/2005/ToolDefinition">
<nodes>
<containmentFeature
href="Content.ecore#//ContentModel/ownedWebApplication"/>
<ownedChild
relatedDiagrams="//@diagram">
<domainMetaElement
href="Content.ecore#//WebApplication"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping">
<diagramLabel
href="Content.gmfgraph#WebApplicationLabel"/>
<features
href="Content.ecore#//ContentUnit/displayName"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="Content.gmftool#//@palette/@tools.0/@tools.6"/>
<diagramNode
href="Content.gmfgraph#WebApplication"/>
<children
compartment="//@nodes.0/@ownedChild/@compartments.0">
<containmentFeature
href="Content.ecore#//WebApplication/ownedSiteColection"/>
<ownedChild
relatedDiagrams="//@diagram">
<domainMetaElement
href="Content.ecore#//SiteCollection"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping">
<diagramLabel
href="Content.gmfgraph#SiteCollectionLabel"/>
<features
href="Content.ecore#//ContentUnit/displayName"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="Content.gmftool#//@palette/@tools.0/@tools.2"/>
<diagramNode
href="Content.gmfgraph#SiteCollection"/>
<children
compartment="//@nodes.0/@ownedChild/@children.0/@ownedChild/@compartments.0">
<containmentFeature
href="Content.ecore#//SiteCollection/ownedWeb"/>
<ownedChild
relatedDiagrams="//@diagram">
<domainMetaElement
href="Content.ecore#//Web"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping">
<diagramLabel
href="Content.gmfgraph#WebLabel"/>
<features
href="Content.ecore#//ContentUnit/displayName"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="Content.gmftool#//@palette/@tools.0/@tools.5"/>
<diagramNode
href="Content.gmfgraph#Web"/>
<children
compartment="//@nodes.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@compartments.0">
<containmentFeature
href="Content.ecore#//Web/ownedList"/>
<ownedChild
relatedDiagrams="//@diagram">
<domainMetaElement
href="Content.ecore#//CustomList"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping">
<diagramLabel
href="Content.gmfgraph#CustomListLabel"/>
<features
href="Content.ecore#//ContentUnit/displayName"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="Content.gmftool#//@palette/@tools.0/@tools.1"/>
<diagramNode
href="Content.gmfgraph#CustomList"/>
<children
compartment="//@nodes.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@compartments.0">
<containmentFeature
href="Content.ecore#//CustomList/ownedContentType"/>
<ownedChild
relatedDiagrams="//@diagram">
<domainMetaElement
href="Content.ecore#//ContentType"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping">
<diagramLabel
href="Content.gmfgraph#ContentTypeLabel"/>
<features
href="Content.ecore#//ContentUnit/displayName"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="Content.gmftool#//@palette/@tools.0/@tools.0"/>
<diagramNode
href="Content.gmfgraph#ContentType"/>
<children
compartment="//@nodes.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@compartments.0">
<containmentFeature
href="Content.ecore#//ContentType/ownedField"/>
<ownedChild>
<domainMetaElement
href="Content.ecore#//TextField"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping"
viewPattern="{0} :' «Text»'"
editorPattern="{0} :' «Text»'"
editPattern="{0} :' «Text»'">
<diagramLabel
href="Content.gmfgraph#TextFieldLabel"/>
<features
href="Content.ecore#//ContentUnit/displayName"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="Content.gmftool#//@palette/@tools.0/@tools.7/@tools.0"/>
<diagramNode
href="Content.gmfgraph#TextField"/>
</ownedChild>
</children>
<children
compartment="//@nodes.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@compartments.0">
<containmentFeature
href="Content.ecore#//ContentType/ownedField"/>
<ownedChild>
<domainMetaElement
href="Content.ecore#//NumberField"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping"
viewPattern="{0} :' «Number»'"
editorPattern="{0} :' «Number»'"
editPattern="{0} :' «Number»'">
<diagramLabel
href="Content.gmfgraph#NumberFieldLabel"/>
<features
href="Content.ecore#//ContentUnit/displayName"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="Content.gmftool#//@palette/@tools.0/@tools.7/@tools.1"/>
<diagramNode
href="Content.gmfgraph#NumberField"/>
</ownedChild>
</children>
<children
compartment="//@nodes.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@compartments.0">
<containmentFeature
href="Content.ecore#//ContentType/ownedField"/>
<ownedChild>
<domainMetaElement
href="Content.ecore#//BooleanField"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping"
viewPattern="{0} :' «Boolean»'"
editorPattern="{0} :' «Boolean»'"
editPattern="{0} :' «Boolean»'">
<diagramLabel
href="Content.gmfgraph#BooleanFieldLabel"/>
<features
href="Content.ecore#//ContentUnit/displayName"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="Content.gmftool#//@palette/@tools.0/@tools.7/@tools.2"/>
<diagramNode
href="Content.gmfgraph#BooleanField"/>
</ownedChild>
</children>
<compartments
children="//@nodes.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.0 //@nodes.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.1 //@nodes.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.2">
<compartment
href="Content.gmfgraph#ContentTypeOwnedFieldCompartment"/>
</compartments>
</ownedChild>
</children>
<children
compartment="//@nodes.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@compartments.1">
<containmentFeature
href="Content.ecore#//CustomList/ownedView"/>
<ownedChild
relatedDiagrams="//@diagram">
<domainMetaElement
href="Content.ecore#//View"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping">
<diagramLabel
href="Content.gmfgraph#ViewLabel"/>
<features
href="Content.ecore#//ContentUnit/displayName"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="Content.gmftool#//@palette/@tools.0/@tools.3"/>
<diagramNode
href="Content.gmfgraph#View"/>
<children
compartment="//@nodes.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.1/@ownedChild/@compartments.0">
<containmentFeature
href="Content.ecore#//View/ownedViewField"/>
<ownedChild>
<domainMetaElement
href="Content.ecore#//ViewField"/>
<labelMappings
xsi:type="gmfmap:ExpressionLabelMapping">
<diagramLabel
href="Content.gmfgraph#ViewFieldLabel"/>
<viewExpression
body="self.field.displayName.concat(' : ').concat(if self.field.oclIsTypeOf(TextField) then '«Text»' else if self.field.oclIsTypeOf(NumberField) then '«Number»' else if self.field.oclIsTypeOf(BooleanField) then '«Boolean»' else if self.field.oclIsTypeOf(LookUp) then '«LookUp»' else '' endif endif endif endif)"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="Content.gmftool#//@palette/@tools.0/@tools.4"/>
<diagramNode
href="Content.gmfgraph#ViewField"/>
</ownedChild>
</children>
<compartments
children="//@nodes.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.1/@ownedChild/@children.0">
<compartment
href="Content.gmfgraph#ViewOwnedViewFieldCompartment"/>
</compartments>
</ownedChild>
</children>
<compartments
children="//@nodes.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.0">
<compartment
href="Content.gmfgraph#CustomListOwnedContentTypeCompartment"/>
</compartments>
<compartments
children="//@nodes.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.1">
<compartment
href="Content.gmfgraph#CustomListOwnedViewCompartment"/>
</compartments>
</ownedChild>
</children>
<children
compartment="//@nodes.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@compartments.1"
referencedChild="//@nodes.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild">
<containmentFeature
href="Content.ecore#//Web/ownedWeb"/>
</children>
<compartments
children="//@nodes.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.0">
<compartment
href="Content.gmfgraph#WebOwnedListCompartment"/>
</compartments>
<compartments
children="//@nodes.0/@ownedChild/@children.0/@ownedChild/@children.0/@ownedChild/@children.1">
<compartment
href="Content.gmfgraph#WebOwnedWebCompartment"/>
</compartments>
</ownedChild>
</children>
<compartments
children="//@nodes.0/@ownedChild/@children.0/@ownedChild/@children.0">
<compartment
href="Content.gmfgraph#SiteCollectionOwnedWebCompartment"/>
</compartments>
</ownedChild>
</children>
<compartments
children="//@nodes.0/@ownedChild/@children.0">
<compartment
href="Content.gmfgraph#WebApplicationOwnedSiteColectionCompartment"/>
</compartments>
</ownedChild>
</nodes>
<links>
<domainMetaElement
href="Content.ecore#//LookUp"/>
<labelMappings
xsi:type="gmfmap:ExpressionLabelMapping">
<diagramLabel
href="Content.gmfgraph#LookUpLabel"/>
<viewExpression
body="self.contentType.displayName.concat(' -> ').concat(self.showField.displayName).concat(' ').concat(self.displayName).concat(' : «LookUp»')"/>
</labelMappings>
<containmentFeature
href="Content.ecore#//ContentType/ownedField"/>
<tool
xsi:type="gmftool:CreationTool"
href="Content.gmftool#//@palette/@tools.0/@tools.7/@tools.3"/>
<diagramLink
href="Content.gmfgraph#LookUp"/>
<linkMetaFeature
xsi:type="ecore:EReference"
href="Content.ecore#//LookUp/contentType"/>
</links>
<links>
<labelMappings
xsi:type="gmfmap:DesignLabelMapping"
readOnly="true">
<diagramLabel
href="Content.gmfgraph#ContentTypeParentContentTypeExternalLabel"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="Content.gmftool#//@palette/@tools.1/@tools.0"/>
<diagramLink
href="Content.gmfgraph#ContentTypeParentContentType"/>
<linkMetaFeature
xsi:type="ecore:EReference"
href="Content.ecore#//ContentType/parentContentType"/>
</links>
<diagram>
<diagramCanvas
href="Content.gmfgraph#content"/>
<domainModel
href="Content.ecore#/"/>
<domainMetaElement
href="Content.ecore#//ContentModel"/>
<palette
href="Content.gmftool#//@palette"/>
</diagram>
</gmfmap:Mapping>
Regards
[Updated on: Mon, 03 June 2013 14:38] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03183 seconds