Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Strange Spaces in UI
Strange Spaces in UI [message #1690482] Fri, 27 March 2015 14:42 Go to next message
Christian Pontesegger is currently offline Christian PonteseggerFriend
Messages: 202
Registered: July 2009
Location: Graz, Austria
Senior Member
In my EMF model I have defined objects called "BOSDLTs". There is a parent type called "Project" containing a property called "BOSDLTs".

When I use the default editor created by EMF the context menu on "Project" contains an entry "BOSDL Ts" (mind the whitespace!) under "New Child".

Where does the whitespace come from? And more important: how can I get rid of it?

thanks
Christian
Re: Strange Spaces in UI [message #1690487 is a reply to message #1690482] Fri, 27 March 2015 15:03 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6444
Registered: July 2009
Senior Member
Am 27.03.2015 um 15:42 schrieb Christian Pontesegger:
> In my EMF model I have defined objects called "BOSDLTs". There is a parent type called "Project" containing a property
> called "BOSDLTs".
>
> When I use the default editor created by EMF the context menu on "Project" contains an entry "BOSDL Ts" (mind the
> whitespace!) under "New Child".
>
> Where does the whitespace come from? And more important: how can I get rid of it?
You can tweak all display strings in your edit plugin's plugin.properties file.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: Strange Spaces in UI [message #1690623 is a reply to message #1690487] Mon, 30 March 2015 07:08 Go to previous messageGo to next message
Christian Pontesegger is currently offline Christian PonteseggerFriend
Messages: 202
Registered: July 2009
Location: Graz, Austria
Senior Member
Thanks, that helped solving the UI problem. Jut to satisfy my curiosity: any idea why these spaces are generated?
Re: Strange Spaces in UI [message #1690632 is a reply to message #1690623] Mon, 30 March 2015 09:08 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30439
Registered: July 2009
Senior Member
Christian,

We try to split camel case into separate words. So AbcDef -> "Abc
Def". It's quite comment that acronym "prefixes" are used in models.
E.g., XSDSchema -> "XSD Schema" , XMLType -> XML Type. But of course
given EJBRDBMap we can't know it should be EJB RDB Map. No algorithm is
perfect... In any case, strings presented to the user are always
represented as properties (so they can be translated) so there's always
an opportunity to make it perfect...


On 30/03/2015 9:08 AM, Christian Pontesegger wrote:
> Thanks, that helped solving the UI problem. Jut to satisfy my
> curiosity: any idea why these spaces are generated?
Re: Strange Spaces in UI [message #1690730 is a reply to message #1690632] Mon, 30 March 2015 21:25 Go to previous message
Christian Pontesegger is currently offline Christian PonteseggerFriend
Messages: 202
Registered: July 2009
Location: Graz, Austria
Senior Member
Thanks for the explanation!
Previous Topic:EMF : Code generation from ecore and genmodel
Next Topic:[Xcore] Extending the generator
Goto Forum:
  


Current Time: Sun Sep 15 14:24:10 GMT 2019

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

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

Back to the top