Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [MWE] Parameter list as Sring []
[MWE] Parameter list as Sring [] [message #515038] Wed, 17 February 2010 14:34 Go to next message
Marcel G. is currently offline Marcel G.Friend
Messages: 4
Registered: November 2009
Junior Member
Hi,

i want to use a list in a simple Parameter.

I have this bean:

<bean id="mm_profile" class="org.eclipse.xtend.typesystem.uml2.profile.ProfileMetaModel ">
<profile value="${profile}"/>
</bean>

In my workflow-properties i have define this:
profile = model/profile.profile.uml,model/test.profile.uml

The workflow serach not two different profies. It serch one wich is called model/profile.profile.uml,model/test.profile.uml

But i want to have a Parameter list with two Parameters



Re: [MWE] Parameter list as Sring [] [message #515247 is a reply to message #515038] Thu, 18 February 2010 04:48 Go to previous messageGo to next message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
Marcel G. schrieb:
> Hi,
>
> i want to use a list in a simple Parameter.
>
> I have this bean:
>
> <bean id="mm_profile"
> class="org.eclipse.xtend.typesystem.uml2.profile.ProfileMetaModel ">
> <profile value="${profile}"/>
> </bean>
>
> In my workflow-properties i have define this:
> profile = model/profile.profile.uml,model/test.profile.uml
>
> The workflow serach not two different profies. It serch one wich is
> called model/profile.profile.uml,model/test.profile.uml
>
> But i want to have a Parameter list with two Parameters
>

That's not possible, since profile expects a single path.
You'll either need to have two <profile/> entries or you could subclass
org.eclipse.xtend.typesystem.uml2.profile.ProfileMetaModel

and add a method setProfiles(String s). The implmentation would split
the string and call super.setProfile(part) for each part.

Sven


--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
Re: [MWE] Parameter list as Sring [] [message #515357 is a reply to message #515038] Thu, 18 February 2010 14:53 Go to previous message
Marcel G. is currently offline Marcel G.Friend
Messages: 4
Registered: November 2009
Junior Member
Hi Sven,

thanks for help. I have make a Subclass and it works fine.

thx
Marcel




Previous Topic:MWE, resources and platform
Next Topic:[MWE] Parameter list as Sring []
Goto Forum:
  


Current Time: Thu Apr 25 02:14:16 GMT 2024

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

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

Back to the top