Skip to main content



      Home
Home » Eclipse Projects » Sirius » Use EMF's node Any in Sirius
icon5.gif  Use EMF's node Any in Sirius [message #1696163] Fri, 22 May 2015 09:12 Go to next message
Eclipse UserFriend
Hi everyone,

I'm trying to make a tool with sirius and i encountered a problem. I would like that users could create their own nodes in my representation. So i imported a xsd file to create an EMF project, in this xsd file i declare an any node as you can see below
<any namespace="##local" processContents="skip"
    			maxOccurs="unbounded">
    			<annotation>
    				<documentation>
    					Representation node is open to any kind of
    					primitive at that time.
    				</documentation>
    			</annotation>
    		</any>

The import of the xsd works fine and i obtain my emf ecore file with an attribute call any of type EFeatureMapEntry, as you can see here:

index.php/fa/21907/0/

So I do everything well to create a Sirius project based on this emf project and.. don't know why but i can't see my attribute any...

index.php/fa/21908/0/

I tried to add an attribute of "AnyType" in my EMF .ecore file and it didn't works either.

Is it possible to do it my way? Is there someone able to say if there is a solution a little similar to this? Or it's not possible to do it?

Thank you very much in advance,

Best regards,

Sébastien D.
  • Attachment: testAny.png
    (Size: 4.58KB, Downloaded 335 times)
  • Attachment: testAny2.png
    (Size: 7.70KB, Downloaded 332 times)

[Updated on: Fri, 22 May 2015 10:42] by Moderator

Re: Use EMF's node Any in Sirius [message #1696462 is a reply to message #1696163] Tue, 26 May 2015 10:47 Go to previous message
Eclipse UserFriend
Hi Sebastien,

Your issue don't seems related to Sirius, XSD and FeatureMap is EMF
related. You should ask your question on EMF forum.

Best Regards.

Le 22/05/2015 15:40, Sebastien Dossot a écrit :
> Hi everyone,
>
> I'm trying to make a tool with sirius and i encountered a problem. I would like that users could create their own nodes in my representation. So i imported a xsd file to create an EMF project, in this xsd file i declare an any node as you can see below
>
> <any namespace="##local" processContents="skip"
> maxOccurs="unbounded">
> <annotation>
> <documentation>
> Representation node is open to any kind of
> primitive at that time.
> </documentation>
> </annotation>
> </any>
>
> The import of the xsd works fine and i obtain my emf ecore file with an attribute call any of type EFeatureMapEntry, as you can see here:
>
>
>
> So I do everything well to create a Sirius project based on this emf project and.. don't know why but i can't see my attribute any...
>
>
>
> I tried to add an attribute of "AnyType" in my EMF .ecore file and it didn't works either.
>
> Is it possible to do it my way? Is there someone able to say if there is a solution a little similar to this? Or it's not possible to do it?
>
> Thank you very much in advance,
>
> Best regards,
>
> Sébastien D.
>



--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Diagrams based on multiple/shared resource
Next Topic:Edit Representations.aird
Goto Forum:
  


Current Time: Fri May 23 18:31:08 EDT 2025

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

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

Back to the top