Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EEF] Documentation?
[EEF] Documentation? [message #622007] Thu, 14 January 2010 19:36 Go to next message
Mauro Condarelli is currently offline Mauro CondarelliFriend
Messages: 428
Registered: September 2009
Senior Member
Hi,
I tried to use EEF, but I only found a page in
http://wiki.eclipse.org/EEF_tutorial_:_First_generation
This page is very terse and, in particular, I could not divine what has
to be done, exactly about:

For the generation, EEF creates two generic providers which have to be
configured with extension points in the project where the code is
generated. The extension point declares a "PropertiesEditionProviders"
and a "PropertieEditionPolicyProviders".

Also I had some problems with:

selectionViewer.addDoubleClickListener(new
OpenWizardOnDoubleClick(editingDomain));

....since I couldn't find any reference to OpenWizardOnDoubleClick()
anywhere on the internet.
Should I write it? If so what is the signature? What should it do?

In general: where can I find documentation to get me running?

Thanks in Advance
Mauro
Re: [EEF] Documentation? [message #622010 is a reply to message #622007] Fri, 15 January 2010 10:00 Go to previous messageGo to next message
Stephane Bouchet is currently offline Stephane BouchetFriend
Messages: 280
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------040400000102050905000601
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi Mauro,

All the documentation for EEF is on the wiki : http://wiki.eclipse.org/EEF

The tutorial wiki page helps you to makes EEF working with any EMF
models. The last part are about to connect the EMF editor with EEF.

the extensions points are partially generated in your workspace ( in the
root of the generated folder you specified in the eefgen model ).

So you can copy/paste it in the plugin.xml of the EMF .edit plugin.
you must verify that the 3 extension points are used .

Next, the OpenWizardOnDoubleClick Class is located in
org.eclipse.emf.eef.runtime.ui.notify.OpenWizardOnDoubleClic k.

so you must add a dependency to EEF runtime in the EMF editor plugin. (
as explained in the wiki )

Thanks for your comments, we will update the wiki to be more clear .

Cheers,

Mauro Condarelli a
Re: [EEF] Documentation? [message #622013 is a reply to message #622010] Mon, 18 January 2010 08:32 Go to previous message
Mauro Condarelli is currently offline Mauro CondarelliFriend
Messages: 428
Registered: September 2009
Senior Member
Thanks for Your kind reply.
I tried to follow instructions, but failed.
I am quite sure others would benefit from some usage clarification.
If required I can contribute a log of my efforts to be converted into a
tutorial... if I manage to solve my problems.
The project I'm working on is supposed to be released as Open Source, so
I have no concerns about keeping "trade secrets" of any sort.

* I have a rather simple EMF model (incomplete!) in
it.condarelli.rcp.writer.model/model/world.genmodel from annotated java.
* I generated the EMF Model, edit and editor code.
* I installed EEF(0.8.0.v201001060751) from "modeling.emf.eef Update
Site - http://download.eclipse.org/modeling/emft/eef/updates/milest ones/"
* I did "Initialize EEF models"; this produced
it.condarelli.rcp.writer.model/model/world.eefgen.
* I did "Generate EEF architecture" with almost no customization of
world.eefgen; this produced a complete src-gen subfolder.

At this point things diverged from the (rather terse) documentation:

# This src-gen is not un the build path by default: I had to manually
add it (Right click->Build path->Use as source folder)
# The generated src-gen/world_properties.plugin.xml did contain only two
of the three extension points named in EEF_tutorial_:_First_generation:
<!-- EEF extensions -->
<extension
point="org.eclipse.emf.eef.runtime.PropertiesEditionProvider ">
<PropertiesEditionComponentProvider

providerClass=" it.condarelli.rcp.writer.model.world.providers.WorldPackageP ropertiesEditionProvider ">
</PropertiesEditionComponentProvider>
</extension>
<extension

point="org.eclipse.emf.eef.runtime.PropertiesEditionPolicyProvider ">
<PropertiesEditionPolicyProvider

providerClass=" it.condarelli.rcp.writer.model.world.providers.WorldPackageP ropertiesEditionPolicyProvider ">
</PropertiesEditionPolicyProvider>
</extension>
no trace of <extension
point="org.eclipse.emf.eef.runtime.PropertiesEditionPartProvider ">
# I added these to my it.condarelli.rcp.writer.model/plugin.xml along
with the extension points listed under <!-- Tabbed properties views
extension -->; is this right? or should I add to the EMF-generated
it.condarelli.rcp.writer.model.edit/plugin.xml or
it.condarelli.rcp.writer.model.editor/plugin.xml?
# All java sources generated under
src-gen/it.condarelli.rcp.writer.model.world.components and under
src-gen/it.condarelli.rcp.writer.model.world.parts have lots of errors
essentially spawning from the fact I have no package
it.condarelli.rcp.writer.model.world.parts; I only have
it.condarelli.rcp.writer.model.world.parts.impl; this seems somewhat
consistent with the missing extension point.

At this point I played around a bit with properties in world.eefgen, but
I'm effectively stuck.




Stéphane Bouchet wrote:
> Hi Mauro,
>
> All the documentation for EEF is on the wiki : http://wiki.eclipse.org/EEF
>
> The tutorial wiki page helps you to makes EEF working with any EMF
> models. The last part are about to connect the EMF editor with EEF.
>
> the extensions points are partially generated in your workspace ( in the
> root of the generated folder you specified in the eefgen model ).
>
> So you can copy/paste it in the plugin.xml of the EMF .edit plugin.
> you must verify that the 3 extension points are used .
>
> Next, the OpenWizardOnDoubleClick Class is located in
> org.eclipse.emf.eef.runtime.ui.notify.OpenWizardOnDoubleClic k.
>
> so you must add a dependency to EEF runtime in the EMF editor plugin. (
> as explained in the wiki )
I did add it, but, for some reason, eclipse Source->Organize imports did
not work for me; I had to manually add "import
org.eclipse.emf.eef.runtime.ui.notify.OpenWizardOnDoubleClic k ", then the
error disappeared.
>
> Thanks for your comments, we will update the wiki to be more clear .
Please do. As said I'm available to help writing guidelines and/or to
test them.

While I have You on-line:
* I have a few EDate fields, but I didn't find any widget to edit them
(I would like to use a picker (e.g.:
http://www.cwroethel.com/Projects/JPopupCalendar/)
* I also have a few EString fields that should contain filenames: is
there a file chooser widget to use (or an easy way to implement it)?

TiA
Regards
Mauro

>
> Cheers,
>
> Mauro Condarelli a écrit :
>> Hi,
>> I tried to use EEF, but I only found a page in
>> http://wiki.eclipse.org/EEF_tutorial_:_First_generation
>> This page is very terse and, in particular, I could not divine what
>> has to be done, exactly about:
>>
>> For the generation, EEF creates two generic providers which have to be
>> configured with extension points in the project where the code is
>> generated. The extension point declares a "PropertiesEditionProviders"
>> and a "PropertieEditionPolicyProviders".
>>
>> Also I had some problems with:
>>
>> selectionViewer.addDoubleClickListener(new
>> OpenWizardOnDoubleClick(editingDomain));
>>
>> ...since I couldn't find any reference to OpenWizardOnDoubleClick()
>> anywhere on the internet.
>> Should I write it? If so what is the signature? What should it do?
>>
>> In general: where can I find documentation to get me running?
>>
>> Thanks in Advance
>> Mauro
>
Previous Topic:[MWE] ClassNotFoundException: org.eclipse.core.runtime.Assert
Next Topic:CDO problems
Goto Forum:
  


Current Time: Tue Jun 15 12:47:45 GMT 2021

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

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

Back to the top