Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » internationalization
internationalization [message #901495] Mon, 13 August 2012 03:26 Go to next message
Eclipse UserFriend
Hi everyone,

i'm currently dealing with i18n in GMF and i need to know whether
it is possible to externalize the strings of the labels (name and text attributes) in gmfgraph into the message.properties file. If so, could anybody give me some instructions on how this can be done?

Regards,
Chris


[Updated on: Mon, 13 August 2012 04:32] by Moderator

Re: internationalization [message #901568 is a reply to message #901495] Mon, 13 August 2012 09:09 Go to previous messageGo to next message
Eclipse UserFriend
Maybe I've expressed myself incorrectly. The text/name attributes for the label in the properties view should be variable. For example, I've seen in the gmfgen file a property 'content extension name' which has the value '%navigatorContentName'. The percent sign indicates that it's a variable name declared in the plugin.properties, e.g. 'navigatorContentName=*.mmd diagram contents'. However, I want GMF to extract the label strings as variables into the generated messages.properties file in the diagram package but the percent syntax doesn't work for gmfgraph figures.

[Updated on: Mon, 13 August 2012 09:10] by Moderator

Re: internationalization [message #902153 is a reply to message #901568] Thu, 16 August 2012 03:16 Go to previous message
Eclipse UserFriend
Ok, got it. For those who are curious: I had to extend the Externalize.xpt file and to define the i18n methods (accessors and values methods)in the NodeEditPart.xpt.

Previous Topic:Cannot build update site with GMF 3.0.0.v201206221900
Next Topic:problem in creating a new editor in Eclipse Application
Goto Forum:
  


Current Time: Sun Jul 13 05:54:57 EDT 2025

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

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

Back to the top