Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Some questions about EMF.genmodel properties
Some questions about EMF.genmodel properties [message #425485] Thu, 27 November 2008 09:48 Go to next message
Timothy Marc is currently offline Timothy MarcFriend
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 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31038
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
>
>
>
Previous Topic:How to change the name of the CreateChildAction once created
Next Topic:UUID with no resource available?
Goto Forum:
  


Current Time: Tue Apr 07 08:35:43 GMT 2020

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

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

Back to the top