Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 13:12 Go to next message
Sebastien Dossot is currently offline Sebastien DossotFriend
Messages: 4
Registered: May 2015
Junior Member
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 250 times)
  • Attachment: testAny2.png
    (Size: 7.70KB, Downloaded 250 times)

[Updated on: Fri, 22 May 2015 14:42]

Report message to a moderator

Re: Use EMF's node Any in Sirius [message #1696462 is a reply to message #1696163] Tue, 26 May 2015 14:47 Go to previous message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
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: Tue Jan 26 13:42:07 GMT 2021

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

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

Back to the top