Hi,
this is the weekly status report for the GSoC 2014 project Snippet
Sharing Infrastructure [1].
What I have done this week:
During the last week I improve the emf model for Snipmatch [2].
A change which introduce the model for snipmatch was already
uploaded last week [3].
But it includes a huge amount of generated LOC which we don't like
to commit.
I search for a way to modify the generated code without commiting it
afterwards.
One way to do this is using EOperation and Annotations in the model:
you can define a string which is copied into the body of a method
during the code generation.
The disadvantage of this is that there is no syntax check or
refactoring support which makes it very fragile.
I will have a look for another solution in the next time.
Beside of that I also continue the work on the wizard which are
responsible for the creation of SnippetRepositoryConfigurations in
the preference page [4].
Now, plugins can provide own wizards using an extension point. When
clicking "New ..." on the preference page a wizard opens which shows
a list of all available wizards.

The user can then select a wizard and continue the configuration.

What I have planned for the next week:
For the next week I plannedĀ to modify the wizards so that they can
also be used to edit existing configurations. Therefore the
corresponding wizard should be opened, filled with the values of the
selected configuration.
Also I will have a look at different ideas of modifing the generated
code (e.g. dynamic templates) and do some cleanup so that
some of the last changes can be submitted.
Regards,
Olav
[1] https://docs.google.com/document/d/1IKXw25w_LsM6xi1Lun48g7Trm_tat6Tgt4HIcVfUT4M/edit#heading=h.f5cmiw24j8xe
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=438044
[3] https://git.eclipse.org/r/#/c/28850/
[4] https://bugs.eclipse.org/bugs/show_bug.cgi?id=438060
|