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: 31164
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
Previous Topic:String trim function in an GMF Audit environment
Next Topic:element drawn in the compartment and outside compartment
Goto Forum:
  


Current Time: Sat Jun 06 12:11:08 GMT 2020

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

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

Back to the top