Skip to main content



      Home
Home » Modeling » EMF » Strange Spaces in UI
Strange Spaces in UI [message #1690482] Fri, 27 March 2015 10:42 Go to next message
Eclipse UserFriend
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 11:03 Go to previous messageGo to next message
Eclipse UserFriend
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 03:08 Go to previous messageGo to next message
Eclipse UserFriend
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 05:08 Go to previous messageGo to next message
Eclipse UserFriend
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 17:25 Go to previous message
Eclipse UserFriend
Thanks for the explanation!
Previous Topic:EMF : Code generation from ecore and genmodel
Next Topic:[Xcore] Extending the generator
Goto Forum:
  


Current Time: Sun Aug 31 16:33:21 EDT 2025

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

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

Back to the top