Some questions about EMF.genmodel properties [message #425485] |
Thu, 27 November 2008 09:48 |
Timothy Marc Messages: 547 Registered: July 2009 |
Senior Member |
|
|
Hey all,
I'm playing a little bit with the genmodel to screw myself deeper into that
topic, therefore, i've changed some settings in the genmodel, which
obviously had no effect for my model.
1. Root Implements Interface: I've entered a qualified interface name to let
my root model element automatically implement this interface. But when i
regenerated, no change had been applied to the root model element.
2. File Extensions (Package): I've a Package named 'Foundation', whih
contains my root model element. I use the Wizard of this package to create a
new model instance. By default, the file extension of ny new created model
by the wizard gets the extension .foundation (in my case). I thought, this
could be changed by defining a different entry in the File Extensions
property. Obviously, it isn't so, and my question is, whether it is possible
to apply a extension to a package that differs from the package name?
Okay, "some questions" was a bit overstated, actually there are only 2
questions. But any hints or information are appreciated.
Thx
Timothy
|
|
|
Re: Some questions about EMF.genmodel properties [message #425493 is a reply to message #425485] |
Thu, 27 November 2008 21:57 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Timothy,
Comments below.
Timothy Marc wrote:
> Hey all,
>
> I'm playing a little bit with the genmodel to screw myself deeper into that
> topic, therefore, i've changed some settings in the genmodel, which
> obviously had no effect for my model.
>
> 1. Root Implements Interface: I've entered a qualified interface name to let
> my root model element automatically implement this interface. But when i
> regenerated, no change had been applied to the root model element
>
This has an effect only when the Root Extends Class isn't already in the
hierarchy. I.e., it's assumed that the Root Extends Class implements
the Root Implements Interface so only if you extend a model with a
different Root Extends Class is the Root Implements Interface going to
have an impact.
> 2. File Extensions (Package): I've a Package named 'Foundation', whih
> contains my root model element. I use the Wizard of this package to create a
> new model instance. By default, the file extension of ny new created model
> by the wizard gets the extension .foundation (in my case). I thought, this
> could be changed by defining a different entry in the File Extensions
> property. Obviously, it isn't so, and my question is, whether it is possible
> to apply a extension to a package that differs from the package name?
>
Keep in mind that the plugin.xml is not regenerated and that
plugin.properties values of existing properties are not changed, so you
need to delete those or change them manually.
> Okay, "some questions" was a bit overstated, actually there are only 2
> questions. But any hints or information are appreciated.
>
> Thx
> Timothy
>
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03587 seconds