Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [tigerstripe-users] How do one select string type for an enum artifact?

Title: Re: [tigerstripe-users] How do one select string type for an enum artifact?

Hi Eric,

That definitely helps and it makes sense not allowing individual literals inside an Enum to have its own data type (that is why the type drop down list is disabled I guess).

 

As always, thanks for the help.

 

--Phil

 

From: Eric Dillon [mailto:erdillon@xxxxxxxxx]
Sent: Tuesday, March 17, 2009 6:42 PM
To: Tigerstripe Users; Phil Chen
Subject: Re: [tigerstripe-users] How do one select string type for an enum artifact?

 

Hi Phil,

Yes. By default, Enumeration use “int” as the base type.
To change that to be “string”, open the Enumeration (double click on it from the Explorer), select the “Details” tab on the editor (at the bottom).
You’ll get to switch between “int” and “String”.

Please note that if you had defined literals as “int” literals, and then change the base type to be “string”, these literals will be “in error”. You’ll need to update them by hand.

Hope that helps,
Eric


On 3/17/09 1:02 PM, "Phil Chen" <pchen@xxxxxxxxxxxxxxxxxxxxx> wrote:

When creating an Enumeration artifact, the constant data type selection is grayed out--it has a preselcted "int" type. User cannot change it.
When creating a constant within Datatype artifact, one can choose either "int" or "string.
 
Is it possible to create a string type enum artifact?
 
Thanks for your help!
 
--Phil


_______________________________________________
tigerstripe-users mailing list
tigerstripe-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tigerstripe-users


Back to the top