Skip to main content



      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 09:34 Go to next message
Eclipse UserFriend
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] Wed, 17 February 2010 23:48 Go to previous messageGo to next message
Eclipse UserFriend
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 09:53 Go to previous message
Eclipse UserFriend
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: Sun Jul 06 15:40:19 EDT 2025

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

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

Back to the top