on 09-22-2004 2:05 PM
Hi,
can anyone tell me what the flag "Generate a class representation of the enumeration" that can be found at the enumeration tab of a simple type does?
As I understand the help files (see below) a class will be generated from which I can read enumeration entries.
But there is no class with the name of the simple type if I use this flag, even not after a rebuild of the project.
Excerpt from help files:
If you choose the option Generate a class representation for the simple type for the String basis type, there will be a class generated that is available at runtime. The name of the class corresponds to the name of the simple type. The first letter is written in uppercase. An object of this class represents exactly one value of the enumeration. If objects of this class are used for example, in interfaces - type security and subsequent use of the enumeration values can be ensured.
Any help is appreciated
Helmut
Well, there should be one residing in gen_ddic.
Have you tried to set up a context with an attribute of that type? That attribute shouldn't be of type string any more. Instead it should be of that enumeration type. Maybe you find the class this way.
Regards, Uwe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Uwe,
in gen_ddic I find only PackagePointer.java which encloses an empty class and MyEnumType.gsimpletype.
I´ve also set up a context attribute of this type and bound it to a radiobutton group. The radiobutton group works correct (shows the options defined in the enumeration type) but the class is still missing.
Regards
Helmut
Hello Helmut,
there was only one situation known to me that the
enumeration class was not generated although the flag
'Generate a class representation... ' was switched on.
This was if an enumeration on the same screen was not
explicitly maintained.
Did you do that? Then regenerate the project and check
in folder gen_ddic in the navigator as before.
Regards,
Kerstin.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.