Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » ecore properties
ecore properties [message #100747] Fri, 02 February 2007 12:44 Go to next message
Eclipse UserFriend
Originally posted by: mikemike54.hotmail.com

Here is the situation. In my ecore file, I have a type <foo> that has a
member of 0..* EString. In the GMF property viewer, all I see is a drop
box with an empty list of items to insert. Without changing the ecore,
is there a way to allow me to edit this property? Ideally, a user
should just be able to type in Strings they want to add to this list.
Can anyone help me with this?

Thanks

-Michael
Re: ecore properties [message #100770 is a reply to message #100747] Fri, 02 February 2007 12:47 Go to previous messageGo to next message
Eclipse UserFriend
What do you see in the ecore generated editor?

On 2007-02-02 12:44:09 -0500, Michael <mikemike54@hotmail.com> said:

> Here is the situation. In my ecore file, I have a type <foo> that has
> a member of 0..* EString. In the GMF property viewer, all I see is a
> drop box with an empty list of items to insert. Without changing the
> ecore, is there a way to allow me to edit this property? Ideally, a
> user should just be able to type in Strings they want to add to this
> list.
> Can anyone help me with this?
>
> Thanks
>
> -Michael
Re: ecore properties [message #100780 is a reply to message #100770] Fri, 02 February 2007 12:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikemike54.hotmail.com

I don't understand what you mean. I am kind of new at this GMF thing
and inherited this project from someone else who basically hacked it
together himself...

So, what is it I am looking for here? I recall reading something about
adding a properties dialog. Would that solve this problem? Where would
such a thing need to go?

Miles Parker wrote:
>
> What do you see in the ecore generated editor?
>
> On 2007-02-02 12:44:09 -0500, Michael <mikemike54@hotmail.com> said:
>
>> Here is the situation. In my ecore file, I have a type <foo> that has
>> a member of 0..* EString. In the GMF property viewer, all I see is a
>> drop box with an empty list of items to insert. Without changing the
>> ecore, is there a way to allow me to edit this property? Ideally, a
>> user should just be able to type in Strings they want to add to this
>> list.
>> Can anyone help me with this?
>>
>> Thanks
>>
>> -Michael
>
>
Re: ecore properties [message #100790 is a reply to message #100780] Fri, 02 February 2007 14:43 Go to previous messageGo to next message
Eclipse UserFriend
Boy, I hate to say this, but it took me months to figure a lot of this
stuff out. But then I'm kind of slow. :)

I think my general suggestion is that you will probably need to take a
step or two back and look at the EMF/ecore stuff and be prepared for
some rather deep reading -- I just don't think that GMF will make sense
to you until you have a handle on that. The issue at hand here is
wether the ecore model and generated code even supports what you want
to do. In this case I was suggesting that you take a look at the EMF
generate .editor code and see wehter _iot_ works as expected first.

YMMV, of course.

On 2007-02-02 12:52:10 -0500, Michael <mikemike54@hotmail.com> said:

> I don't understand what you mean. I am kind of new at this GMF thing
> and inherited this project from someone else who basically hacked it
> together himself...
>
> So, what is it I am looking for here? I recall reading something about
> adding a properties dialog. Would that solve this problem? Where
> would such a thing need to go?
>
> Miles Parker wrote:
>>
>> What do you see in the ecore generated editor?
>>
>> On 2007-02-02 12:44:09 -0500, Michael <mikemike54@hotmail.com> said:
>>
>>> Here is the situation. In my ecore file, I have a type <foo> that has
>>> a member of 0..* EString. In the GMF property viewer, all I see is a
>>> drop box with an empty list of items to insert. Without changing the
>>> ecore, is there a way to allow me to edit this property? Ideally, a
>>> user should just be able to type in Strings they want to add to this
>>> list.
>>> Can anyone help me with this?
>>>
>>> Thanks
>>>
>>> -Michael
Re: ecore properties [message #100802 is a reply to message #100790] Fri, 02 February 2007 15:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Miles,

Yes, this should be properly supported in the generated EMF editor to
produce a dialog that lets you enter a series of string...


Miles Parker wrote:
>
> Boy, I hate to say this, but it took me months to figure a lot of this
> stuff out. But then I'm kind of slow. :)
>
> I think my general suggestion is that you will probably need to take a
> step or two back and look at the EMF/ecore stuff and be prepared for
> some rather deep reading -- I just don't think that GMF will make
> sense to you until you have a handle on that. The issue at hand here
> is wether the ecore model and generated code even supports what you
> want to do. In this case I was suggesting that you take a look at the
> EMF generate .editor code and see wehter _iot_ works as expected first.
>
> YMMV, of course.
>
> On 2007-02-02 12:52:10 -0500, Michael <mikemike54@hotmail.com> said:
>
>> I don't understand what you mean. I am kind of new at this GMF thing
>> and inherited this project from someone else who basically hacked it
>> together himself...
>>
>> So, what is it I am looking for here? I recall reading something
>> about adding a properties dialog. Would that solve this problem?
>> Where would such a thing need to go?
>>
>> Miles Parker wrote:
>>>
>>> What do you see in the ecore generated editor?
>>>
>>> On 2007-02-02 12:44:09 -0500, Michael <mikemike54@hotmail.com> said:
>>>
>>>> Here is the situation. In my ecore file, I have a type <foo> that
>>>> has a member of 0..* EString. In the GMF property viewer, all I
>>>> see is a drop box with an empty list of items to insert. Without
>>>> changing the ecore, is there a way to allow me to edit this
>>>> property? Ideally, a user should just be able to type in Strings
>>>> they want to add to this list.
>>>> Can anyone help me with this?
>>>>
>>>> Thanks
>>>>
>>>> -Michael
>
>
Re: ecore properties [message #100815 is a reply to message #100802] Fri, 02 February 2007 16:30 Go to previous messageGo to next message
Eclipse UserFriend
Right..to be clear I meant there is probably something up w/ the
..ecore, .genmodel, or gen'd code in question as this should
work..sorry, Mike, bottom line is that your expectation is correct but
that the develi is in the details..

On 2007-02-02 15:47:12 -0500, Ed Merks <merks@ca.ibm.com> said:

> Miles,
>
> Yes, this should be properly supported in the generated EMF editor to
> produce a dialog that lets you enter a series of string...
>
>
> Miles Parker wrote:
>>
>> Boy, I hate to say this, but it took me months to figure a lot of this
>> stuff out. But then I'm kind of slow. :)
>>
>> I think my general suggestion is that you will probably need to take a
>> step or two back and look at the EMF/ecore stuff and be prepared for
>> some rather deep reading -- I just don't think that GMF will make sense
>> to you until you have a handle on that. The issue at hand here is
>> wether the ecore model and generated code even supports what you want
>> to do. In this case I was suggesting that you take a look at the EMF
>> generate .editor code and see wehter _iot_ works as expected first.
>>
>> YMMV, of course.
>>
>> On 2007-02-02 12:52:10 -0500, Michael <mikemike54@hotmail.com> said:
>>
>>> I don't understand what you mean. I am kind of new at this GMF thing
>>> and inherited this project from someone else who basically hacked it
>>> together himself...
>>>
>>> So, what is it I am looking for here? I recall reading something about
>>> adding a properties dialog. Would that solve this problem? Where
>>> would such a thing need to go?
>>>
>>> Miles Parker wrote:
>>>>
>>>> What do you see in the ecore generated editor?
>>>>
>>>> On 2007-02-02 12:44:09 -0500, Michael <mikemike54@hotmail.com> said:
>>>>
>>>>> Here is the situation. In my ecore file, I have a type <foo> that has
>>>>> a member of 0..* EString. In the GMF property viewer, all I see is a
>>>>> drop box with an empty list of items to insert. Without changing the
>>>>> ecore, is there a way to allow me to edit this property? Ideally, a
>>>>> user should just be able to type in Strings they want to add to this
>>>>> list.
>>>>> Can anyone help me with this?
>>>>>
>>>>> Thanks
>>>>>
>>>>> -Michael
Re: ecore properties [message #100871 is a reply to message #100802] Fri, 02 February 2007 18:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikemike54.hotmail.com

So, is there a quick place you can point me to so I can make a dialog
box for this? Or should I dredge through the EMF book and google?


Ed Merks wrote:
> Miles,
>
> Yes, this should be properly supported in the generated EMF editor to
> produce a dialog that lets you enter a series of string...
>
>
> Miles Parker wrote:
>>
>> Boy, I hate to say this, but it took me months to figure a lot of this
>> stuff out. But then I'm kind of slow. :)
>>
>> I think my general suggestion is that you will probably need to take a
>> step or two back and look at the EMF/ecore stuff and be prepared for
>> some rather deep reading -- I just don't think that GMF will make
>> sense to you until you have a handle on that. The issue at hand here
>> is wether the ecore model and generated code even supports what you
>> want to do. In this case I was suggesting that you take a look at the
>> EMF generate .editor code and see wehter _iot_ works as expected first.
>>
>> YMMV, of course.
>>
>> On 2007-02-02 12:52:10 -0500, Michael <mikemike54@hotmail.com> said:
>>
>>> I don't understand what you mean. I am kind of new at this GMF thing
>>> and inherited this project from someone else who basically hacked it
>>> together himself...
>>>
>>> So, what is it I am looking for here? I recall reading something
>>> about adding a properties dialog. Would that solve this problem?
>>> Where would such a thing need to go?
>>>
>>> Miles Parker wrote:
>>>>
>>>> What do you see in the ecore generated editor?
>>>>
>>>> On 2007-02-02 12:44:09 -0500, Michael <mikemike54@hotmail.com> said:
>>>>
>>>>> Here is the situation. In my ecore file, I have a type <foo> that
>>>>> has a member of 0..* EString. In the GMF property viewer, all I
>>>>> see is a drop box with an empty list of items to insert. Without
>>>>> changing the ecore, is there a way to allow me to edit this
>>>>> property? Ideally, a user should just be able to type in Strings
>>>>> they want to add to this list.
>>>>> Can anyone help me with this?
>>>>>
>>>>> Thanks
>>>>>
>>>>> -Michael
>>
>>
Re: ecore properties [message #100899 is a reply to message #100871] Sat, 03 February 2007 07:40 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Michael,

You can look in
org.eclipse.emf.edit.ui.provider.PropertyDescriptor.createPr opertyEditor
to see how it uses ExtendedDialogCellEditor in combination with
FeatureEditorDialog.


Michael wrote:
> So, is there a quick place you can point me to so I can make a dialog
> box for this? Or should I dredge through the EMF book and google?
>
>
> Ed Merks wrote:
>> Miles,
>>
>> Yes, this should be properly supported in the generated EMF editor to
>> produce a dialog that lets you enter a series of string...
>>
>>
>> Miles Parker wrote:
>>>
>>> Boy, I hate to say this, but it took me months to figure a lot of
>>> this stuff out. But then I'm kind of slow. :)
>>>
>>> I think my general suggestion is that you will probably need to take
>>> a step or two back and look at the EMF/ecore stuff and be prepared
>>> for some rather deep reading -- I just don't think that GMF will
>>> make sense to you until you have a handle on that. The issue at hand
>>> here is wether the ecore model and generated code even supports what
>>> you want to do. In this case I was suggesting that you take a look
>>> at the EMF generate .editor code and see wehter _iot_ works as
>>> expected first.
>>>
>>> YMMV, of course.
>>>
>>> On 2007-02-02 12:52:10 -0500, Michael <mikemike54@hotmail.com> said:
>>>
>>>> I don't understand what you mean. I am kind of new at this GMF
>>>> thing and inherited this project from someone else who basically
>>>> hacked it together himself...
>>>>
>>>> So, what is it I am looking for here? I recall reading something
>>>> about adding a properties dialog. Would that solve this problem?
>>>> Where would such a thing need to go?
>>>>
>>>> Miles Parker wrote:
>>>>>
>>>>> What do you see in the ecore generated editor?
>>>>>
>>>>> On 2007-02-02 12:44:09 -0500, Michael <mikemike54@hotmail.com> said:
>>>>>
>>>>>> Here is the situation. In my ecore file, I have a type <foo>
>>>>>> that has a member of 0..* EString. In the GMF property viewer,
>>>>>> all I see is a drop box with an empty list of items to insert.
>>>>>> Without changing the ecore, is there a way to allow me to edit
>>>>>> this property? Ideally, a user should just be able to type in
>>>>>> Strings they want to add to this list.
>>>>>> Can anyone help me with this?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> -Michael
>>>
>>>
Previous Topic:Multiple diagrams and generated xxxDocumentProvider synchronization code
Next Topic:large E(G)MF models
Goto Forum:
  


Current Time: Fri Jul 18 19:32:07 EDT 2025

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

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

Back to the top