Definition and data editor [message #894222] |
Sat, 07 July 2012 16:59  |
Eclipse User |
|
|
|
Hello,
I am trying to develop a model, which can represent a definition and additional the data.
I want to have a list with definition entries, which contains a map with a string key and for example an integer value like following:
command definition:
- start - 4
- dc - 6
- end - 10
- c - 1
The integer represent the count of spells, which can be used in the data entry.
command entry:
- start - 1010
- dc - 111011
- end - 1001011010
- c - 1
I hope my idea is clear enough, otherwise please ask and I will try to provide more details.
The first part (definition) is very simple and I have done this yet.
But how can I add the data part?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Definition and data editor [message #897475 is a reply to message #897467] |
Tue, 24 July 2012 05:00  |
Eclipse User |
|
|
|
Comments below.
On 24/07/2012 10:30 AM, Missing name Mising name wrote:
> I tried to explain it in my first post
> (http://www.eclipse.org/forums/index.php/mv/msg/367048/894222/#msg_894222).
> I am searching for a good way to model and implement a definition and
> data editor.
It's a very long thread...
>
> Definition editor shall give the possibility to create a structure of
> attributes with constraints values.
> Data editor shall use the structure of attributes to store them and
> check them against the constraints values.
>
> The definition model was realized very fast and with your hints, I
> know the way how to handle constraints and so on.
> But I want to model and implement the data editor now.
>
> The idea was to create a data model, which loads the definition model
> and I "copy" the structure of the definition.
> After that I change the types (of the constraints values) to the
> needed one (of the data values) and add the needed constraints
> annotation.
Try it.
>
> Perhaps there is a better way.
I don't have the time to fully understand your design.
|
|
|
Powered by
FUDForum. Page generated in 0.16573 seconds