Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsbest pratice on where to store property strings?
https://www.eclipse.org/forums/index.php/mv/msg/181662/576305/#msg_576305
strings, which raises a question for me. The comment:
-------------------
All the error messages are in plugins/org.eclipse.xsd/plugin.properties.
They typically have names based on keys in the spec's html, e.g., the
message:
cvc-complex-type.3 = The attribute ''{0}'' is not permitted
-------------------
It seems that EMF plugins keep all translation strings in the
plugin.properties file, whereas the Wizard generated plugins from non-EMF
always specify a separate resource file for properties. Outside of EMF and
XSD, the plugin.properties is only used for variable replacement in the
plugin.xsd definitions. Other plugins as part of Eclipse core contain
several properties files that are distributed across different packages
within the plugin (the JDT plugin comes to mind here).
I'm looking for a best practice (or at least a common convention for my own
code) about where to keep message properties. Any reason not to centralize
all property strings in the plugin.properties files as done with EMF?
Thanks!
Dave Carlson]]>Dave Carlson2003-08-25T00:55:37-00:00