Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Setting multi line variable value
Setting multi line variable value [message #1634911] Wed, 25 February 2015 14:19 Go to next message
Andreas Graf is currently offline Andreas GrafFriend
Messages: 211
Registered: July 2009
Senior Member
Hi all,

I want to configure a setting for Jautodoc (the Copyright Header) with Ooomph. So I want to set the value of a variable to a multiline value.

How would I do that?

Regards,

Andreas
Re: Setting multi line variable value [message #1635049 is a reply to message #1634911] Wed, 25 February 2015 15:40 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6692
Registered: July 2009
Senior Member
Am 25.02.2015 um 15:19 schrieb Andreas Graf:
> Hi all,
>
> I want to configure a setting for Jautodoc (the Copyright Header) with Ooomph. So I want to set the value of a
> variable to a multiline value. How would I do that?
That is actually a very good question, but it seems that that isn't so easy with the existing cell editors in the
properties sheet. Ed, do you know a trick from EMF?

Andreas, where do you plan to use this variable?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: Setting multi line variable value [message #1636406 is a reply to message #1635049] Thu, 26 February 2015 07:09 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
Eike,

Isn't this mostly an issue of supporting a variable type that will
produce a multi-line field in the form? Or is this really a question
about a modeled attribute, in which case it's easy via the GenFeature
multiline property.

On 25.02.2015 16:40, Eike Stepper wrote:
> Am 25.02.2015 um 15:19 schrieb Andreas Graf:
>> Hi all,
>>
>> I want to configure a setting for Jautodoc (the Copyright Header) with
>> Ooomph. So I want to set the value of a variable to a multiline value.
>> How would I do that?
> That is actually a very good question, but it seems that that isn't so
> easy with the existing cell editors in the properties sheet. Ed, do you
> know a trick from EMF?
>
> Andreas, where do you plan to use this variable?
>
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Setting multi line variable value [message #1636459 is a reply to message #1636406] Thu, 26 February 2015 07:44 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6692
Registered: July 2009
Senior Member
Am 26.02.2015 um 08:09 schrieb Ed Merks:
> Eike,
>
> Isn't this mostly an issue of supporting a variable type that will produce a multi-line field in the form?
We support a variable type "TEXT" that produces a multi-line field on the VariablesPage of the setup wizard. But I found
no way to specify the (multi-line) value of a variable in the model. I.e. users can enter multi-line text, authors cannot.

> Or is this really a question about a modeled attribute, in which case it's easy via the GenFeature multiline property.
I'm sure with custom cell editors we can achieve it. I think the question was more how an author can work around it
until we have better cell editors.

Andreas, is that right?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


>
> On 25.02.2015 16:40, Eike Stepper wrote:
>> Am 25.02.2015 um 15:19 schrieb Andreas Graf:
>>> Hi all,
>>>
>>> I want to configure a setting for Jautodoc (the Copyright Header) with
>>> Ooomph. So I want to set the value of a variable to a multiline value.
>>> How would I do that?
>> That is actually a very good question, but it seems that that isn't so
>> easy with the existing cell editors in the properties sheet. Ed, do you
>> know a trick from EMF?
>>
>> Andreas, where do you plan to use this variable?
>>
>> Cheers
>> /Eike
>>
>> ----
>> http://www.esc-net.de
>> http://thegordian.blogspot.com
>> http://twitter.com/eikestepper
>>
>>
>


Re: Setting multi line variable value [message #1641050 is a reply to message #1636459] Sat, 28 February 2015 11:19 Go to previous messageGo to next message
Andreas Graf is currently offline Andreas GrafFriend
Messages: 211
Registered: July 2009
Senior Member
Yes, I managed to get the value in by recording the preferences changes.
It looks like this in the .setup:

<setupTask
xsi:type="setup:PreferenceTask"
key="/instance/net.sf.jautodoc/header_text"
value="/**&#xD;&#xA;#if($project_name.toString().contains(&quot;com&quot;))&#xD;&#xA;

It would be obviously very cumbersome to add this manually somehow without a multi line editor.


Re: Setting multi line variable value [message #1641182 is a reply to message #1641050] Sat, 28 February 2015 12:49 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6692
Registered: July 2009
Senior Member
Am 28.02.2015 um 12:19 schrieb Andreas Graf:
> Yes, I managed to get the value in by recording the preferences changes.
> It looks like this in the .setup:
>
> <setupTask
> xsi:type="setup:PreferenceTask"
> key="/instance/net.sf.jautodoc/header_text"
> value="/**
> #if($project_name.toString().contains("com"))
>
>
> It would be obviously very cumbersome to add this manually somehow without a multi line editor.
Please submit an enhancement request to remind us about more flexible cell editors.

And enjoy your weekend ;-)

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Previous Topic:password validation
Next Topic:Product catalog empty on first launch
Goto Forum:
  


Current Time: Sat Dec 07 02:31:24 GMT 2024

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

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

Back to the top