Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » package name in generated model code
package name in generated model code [message #200111] Mon, 04 August 2008 12:55 Go to next message
Stephan Arenswald is currently offline Stephan ArenswaldFriend
Messages: 11
Registered: July 2009
Junior Member
Hello,

after creating an emf model and assigning a name, NS URI and NS Prefix
to the EPackage element i'm creating a Domain Gen Model using the GMF
dashboard. With this I am able to generate the model code. This creates
some packages within my GMF project. These packages do not use any
prefix like org.eclipse.example or so. They only use the name I assigned
in the EMF model.
Is there a way to add such a package prefix?

Greetings,
Stephan
Re: package name in generated model code [message #200126 is a reply to message #200111] Mon, 04 August 2008 13:16 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
Stephen,

The nsPrefix is used only in the XML serialization of instances. You'd
want to set the "Base Package" property on the GenPackage (the second
level of nesting in Generator when you open the *.genmodel).


Stephan Arenswald wrote:
> Hello,
>
> after creating an emf model and assigning a name, NS URI and NS Prefix
> to the EPackage element i'm creating a Domain Gen Model using the GMF
> dashboard. With this I am able to generate the model code. This
> creates some packages within my GMF project. These packages do not use
> any prefix like org.eclipse.example or so. They only use the name I
> assigned in the EMF model.
> Is there a way to add such a package prefix?
>
> Greetings,
> Stephan


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:String trim function in an GMF Audit environment
Next Topic:element drawn in the compartment and outside compartment
Goto Forum:
  


Current Time: Fri Dec 27 02:53:54 GMT 2024

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

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

Back to the top