| Generating Edit Code into the Model Project [message #424067] |
Wed, 15 October 2008 13:47  |
Eclipse User |
|
|
|
Hi,
I'd like the generator to put edit code into the model project. Is it
done by simply setting the "Edit-Directory" in the Genmodel accordingly
and adding emf.edit as a dependency in the model plugin? Do I need to be
careful with that approach in general? To feel a little safer, I
generate into a separate directories (/model-project/src-edit) and
(model-project/src-model).
Ciao,
Felix
|
|
|
| Re: Generating Edit Code into the Model Project [message #424068 is a reply to message #424067] |
Wed, 15 October 2008 14:01   |
Eclipse User |
|
|
|
Originally posted by: cdamus.zeligsoft.com
Hi, Felix,
See some replies in-line, below.
HTH,
Christian
Felix Dorner wrote:
> Hi,
>
> I'd like the generator to put edit code into the model project. Is it
> done by simply setting the "Edit-Directory" in the Genmodel accordingly
> and adding emf.edit as a dependency in the model plugin? Do I need to be
I think the stock answer to questions like this s "Try it. If it works,
rejoice." :-P
One problem that I could anticipate is conflict in the plugin.xml,
plugin.properties, and plug-in activator class. All of these will have
different contributions from the model and edit departments, and I don't
know that merging them is supported by the generator.
> careful with that approach in general? To feel a little safer, I
> generate into a separate directories (/model-project/src-edit) and
> (model-project/src-model).
Ah, but then you end up with two plug-in activators, but still only one
plugin.xml. You'd have to manually copy stuff from the edit "plug-in"
to the model plug-in (ResourceLocator comes to mind).
Depending on the size of your model, you might upset your users with the
size of the resulting JAR file. Imagine , for example, all of the UML2
edit code included with the model ... something like 300 EClasses.
>
> Ciao,
> Felix
|
|
|
| Re: Generating Edit Code into the Model Project [message #424075 is a reply to message #424068] |
Wed, 15 October 2008 15:30  |
Eclipse User |
|
|
|
> I think the stock answer to questions like this s "Try it. If it works,
> rejoice." :-P
Of course I did. I just thought there's a stock "yes thats' it"
confirmation. I actually got the "Idea" from the EMF Rough-Cuts Book. I
know that it's probably not a good thing to do, but for my current
situation it's the most comfortable solution.
>
> Ah, but then you end up with two plug-in activators, but still only one
> plugin.xml. You'd have to manually copy stuff from the edit "plug-in"
> to the model plug-in (ResourceLocator comes to mind).
Hm, I don't really use the Plugin-Functionality, my App is Standalone.
|
|
|
Powered by
FUDForum. Page generated in 0.05035 seconds