Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » EEF questions
EEF questions [message #490653] Fri, 09 October 2009 15:13 Go to next message
Nuno Ferreira is currently offline Nuno FerreiraFriend
Messages: 17
Registered: July 2009
Junior Member
Hi,

I've been exploring EEF and some doubts about its features came out.

Is it possible to use the generated widgets without being restricted to the Properties View? For instance, i want to use the widgets on my own editor and when opening a file of the correct type, the widgets are populated.

Another question is related to the widgets. Is it possible to create my own widgets or add other ones? In the "component" file the New Child > Widget menu is deactivated.


Thanks in advance.
Re: EEF questions [message #490667 is a reply to message #490653] Fri, 09 October 2009 15:38 Go to previous messageGo to next message
Goulwen Le Fur is currently offline Goulwen Le FurFriend
Messages: 125
Registered: July 2009
Senior Member
Hello Nuno,

Comments bellow

Nuno Ferreira a écrit :
> Hi,
>
> I've been exploring EEF and some doubts about its features came out.
>
> Is it possible to use the generated widgets without being restricted to
> the Properties View? For instance, i want to use the widgets on my own
> editor and when opening a file of the correct type, the widgets are
> populated.
>

Yes you can use the resulting code of EEF generation can be included in
any SWT/JFace element.

> Another question is related to the widgets. Is it possible to create my
> own widgets or add other ones? In the "component" file the New Child >
> Widget menu is deactivated.
>

You can add your own widget but there is some steps to follow. The first
step is to declare a new variale in a toolkit, but, the toolkit use by
eef by default are models in plugins so you can't modify it. If you want
to declare a new widget, create a new "Toolkits" model. After that, you
have to involve the EEF generating module to describ how to generate the
code for your widget

This part isn't described yet in our docs, if you encountered troubles
to adding widget don't hesitate to ask on the forum.

>
> Thanks in advance.
>

Greets,

--
Goulwen Le Fur - goulwen.lefur@obeo.fr
Re: EEF questions [message #490892 is a reply to message #490667] Mon, 12 October 2009 09:48 Go to previous messageGo to next message
Nuno Ferreira is currently offline Nuno FerreiraFriend
Messages: 17
Registered: July 2009
Junior Member
Goulwen Le Fur wrote on Fri, 09 October 2009 11:38
Hello Nuno,

Comments bellow

Nuno Ferreira a écrit :
> Hi,
>
> I've been exploring EEF and some doubts about its features came out.
>
> Is it possible to use the generated widgets without being restricted to
> the Properties View? For instance, i want to use the widgets on my own
> editor and when opening a file of the correct type, the widgets are
> populated.
>

Yes you can use the resulting code of EEF generation can be included in
any SWT/JFace element.




Sorry, but what i meant was if there is some kind of content provider which can be used to set and get the contents of the entire generated form.
From what i've seen it is only possible to do it individually, widget by widget. Am i correct?



Thanks!
Re: EEF questions [message #491084 is a reply to message #490892] Tue, 13 October 2009 08:01 Go to previous messageGo to next message
Goulwen Le Fur is currently offline Goulwen Le FurFriend
Messages: 125
Registered: July 2009
Senior Member
Hi,

You're right for the moment the get/setting of the form is only possible
widget by widget, we haven't a system of ContentProvider which is a good
idea.

But I didn't understand what is the need behind your question ?

--
Goulwen Le Fur - goulwen.lefur@obeo.fr

Nuno Ferreira a écrit :
> Goulwen Le Fur wrote on Fri, 09 October 2009 11:38
>> Hello Nuno,
>>
>> Comments bellow
>>
>> Nuno Ferreira a écrit :
>> > Hi,
>> > > I've been exploring EEF and some doubts about its features came out.
>> > > Is it possible to use the generated widgets without being
>> restricted to > the Properties View? For instance, i want to use the
>> widgets on my own > editor and when opening a file of the correct
>> type, the widgets are > populated.
>> >
>> Yes you can use the resulting code of EEF generation can be included
>> in any SWT/JFace element.
>
>
> Sorry, but what i meant was if there is some kind of content provider
> which can be used to set and get the contents of the entire generated
> form. From what i've seen it is only possible to do it individually,
> widget by widget. Am i correct?
>
>
>
> Thanks!
Re: EEF questions [message #491107 is a reply to message #491084] Tue, 13 October 2009 10:10 Go to previous messageGo to next message
Nuno Ferreira is currently offline Nuno FerreiraFriend
Messages: 17
Registered: July 2009
Junior Member
Goulwen Le Fur wrote on Tue, 13 October 2009 04:01
Hi,

You're right for the moment the get/setting of the form is only possible
widget by widget, we haven't a system of ContentProvider which is a good
idea.

But I didn't understand what is the need behind your question ?



Since the widgets can be accessed through a form, i imagined it would exist a way to provide an EObject to the entire form. Just a guess Smile

Regarding the widgets, could you give more details? I always get an INVALID in the generated code.
Besides filling the implementation class, what else is needed?

Thanks!
Re: EEF questions [message #491343 is a reply to message #491107] Wed, 14 October 2009 08:41 Go to previous message
Goulwen Le Fur is currently offline Goulwen Le FurFriend
Messages: 125
Registered: July 2009
Senior Member
Hello Nuno,

I think you use the code generated with EEF in a wrong way. To include
the code in another graphical component that those in the EEF runtime,
you have to create an PropertiesEditionComponent associated to EObject
to edit (with the EEF providers) and then ask this component to create
the views for your EObject.

The component will synchronized the view and the model, so you to don't
have to use the get/set of the view. The EditPropertyWizard is a good
example for this !

Greets

--
Goulwen Le Fur - goulwen.lefur@obeo.fr

Nuno Ferreira a écrit :
> Goulwen Le Fur wrote on Tue, 13 October 2009 04:01
>> Hi,
>>
>> You're right for the moment the get/setting of the form is only
>> possible widget by widget, we haven't a system of ContentProvider
>> which is a good idea.
>>
>> But I didn't understand what is the need behind your question ?
>
>
> Since the widgets can be accessed through a form, i imagined it would
> exist a way to provide an EObject to the entire form. Just a guess :)
>
> Regarding the widgets, could you give more details? I always get an
> INVALID in the generated code.
> Besides filling the implementation class, what else is needed?
>
> Thanks!
Re: EEF questions [message #621450 is a reply to message #490653] Fri, 09 October 2009 15:38 Go to previous message
Goulwen Le Fur is currently offline Goulwen Le FurFriend
Messages: 125
Registered: July 2009
Senior Member
Hello Nuno,

Comments bellow

Nuno Ferreira a écrit :
> Hi,
>
> I've been exploring EEF and some doubts about its features came out.
>
> Is it possible to use the generated widgets without being restricted to
> the Properties View? For instance, i want to use the widgets on my own
> editor and when opening a file of the correct type, the widgets are
> populated.
>

Yes you can use the resulting code of EEF generation can be included in
any SWT/JFace element.

> Another question is related to the widgets. Is it possible to create my
> own widgets or add other ones? In the "component" file the New Child >
> Widget menu is deactivated.
>

You can add your own widget but there is some steps to follow. The first
step is to declare a new variale in a toolkit, but, the toolkit use by
eef by default are models in plugins so you can't modify it. If you want
to declare a new widget, create a new "Toolkits" model. After that, you
have to involve the EEF generating module to describ how to generate the
code for your widget

This part isn't described yet in our docs, if you encountered troubles
to adding widget don't hesitate to ask on the forum.

>
> Thanks in advance.
>

Greets,

--
Goulwen Le Fur - goulwen.lefur@obeo.fr
Re: EEF questions [message #621453 is a reply to message #490667] Mon, 12 October 2009 09:48 Go to previous message
Nuno Ferreira is currently offline Nuno FerreiraFriend
Messages: 17
Registered: July 2009
Junior Member
Goulwen Le Fur wrote on Fri, 09 October 2009 11:38
> Hello Nuno,
>
> Comments bellow
>
> Nuno Ferreira a écrit :
> > Hi,
> >
> > I've been exploring EEF and some doubts about its features came out.
> >
> > Is it possible to use the generated widgets without being restricted to
> > the Properties View? For instance, i want to use the widgets on my own
> > editor and when opening a file of the correct type, the widgets are
> > populated.
> >
>
> Yes you can use the resulting code of EEF generation can be included in
> any SWT/JFace element.


Sorry, but what i meant was if there is some kind of content provider which can be used to set and get the contents of the entire generated form.
From what i've seen it is only possible to do it individually, widget by widget. Am i correct?



Thanks!
Re: EEF questions [message #621458 is a reply to message #490892] Tue, 13 October 2009 08:01 Go to previous message
Goulwen Le Fur is currently offline Goulwen Le FurFriend
Messages: 125
Registered: July 2009
Senior Member
Hi,

You're right for the moment the get/setting of the form is only possible
widget by widget, we haven't a system of ContentProvider which is a good
idea.

But I didn't understand what is the need behind your question ?

--
Goulwen Le Fur - goulwen.lefur@obeo.fr

Nuno Ferreira a écrit :
> Goulwen Le Fur wrote on Fri, 09 October 2009 11:38
>> Hello Nuno,
>>
>> Comments bellow
>>
>> Nuno Ferreira a écrit :
>> > Hi,
>> > > I've been exploring EEF and some doubts about its features came out.
>> > > Is it possible to use the generated widgets without being
>> restricted to > the Properties View? For instance, i want to use the
>> widgets on my own > editor and when opening a file of the correct
>> type, the widgets are > populated.
>> >
>> Yes you can use the resulting code of EEF generation can be included
>> in any SWT/JFace element.
>
>
> Sorry, but what i meant was if there is some kind of content provider
> which can be used to set and get the contents of the entire generated
> form. From what i've seen it is only possible to do it individually,
> widget by widget. Am i correct?
>
>
>
> Thanks!
Re: EEF questions [message #621462 is a reply to message #491084] Tue, 13 October 2009 10:10 Go to previous message
Nuno Ferreira is currently offline Nuno FerreiraFriend
Messages: 17
Registered: July 2009
Junior Member
Goulwen Le Fur wrote on Tue, 13 October 2009 04:01
> Hi,
>
> You're right for the moment the get/setting of the form is only possible
> widget by widget, we haven't a system of ContentProvider which is a good
> idea.
>
> But I didn't understand what is the need behind your question ?


Since the widgets can be accessed through a form, i imagined it would exist a way to provide an EObject to the entire form. Just a guess :)

Regarding the widgets, could you give more details? I always get an INVALID in the generated code.
Besides filling the implementation class, what else is needed?

Thanks!
Re: EEF questions [message #621472 is a reply to message #491107] Wed, 14 October 2009 08:41 Go to previous message
Goulwen Le Fur is currently offline Goulwen Le FurFriend
Messages: 125
Registered: July 2009
Senior Member
Hello Nuno,

I think you use the code generated with EEF in a wrong way. To include
the code in another graphical component that those in the EEF runtime,
you have to create an PropertiesEditionComponent associated to EObject
to edit (with the EEF providers) and then ask this component to create
the views for your EObject.

The component will synchronized the view and the model, so you to don't
have to use the get/set of the view. The EditPropertyWizard is a good
example for this !

Greets

--
Goulwen Le Fur - goulwen.lefur@obeo.fr

Nuno Ferreira a écrit :
> Goulwen Le Fur wrote on Tue, 13 October 2009 04:01
>> Hi,
>>
>> You're right for the moment the get/setting of the form is only
>> possible widget by widget, we haven't a system of ContentProvider
>> which is a good idea.
>>
>> But I didn't understand what is the need behind your question ?
>
>
> Since the widgets can be accessed through a form, i imagined it would
> exist a way to provide an EObject to the entire form. Just a guess :)
>
> Regarding the widgets, could you give more details? I always get an
> INVALID in the generated code.
> Besides filling the implementation class, what else is needed?
>
> Thanks!
Previous Topic:How to get involve
Next Topic:[Proposal] Project EMF Henshin approved
Goto Forum:
  


Current Time: Sat Apr 20 00:18:18 GMT 2024

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

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

Back to the top