Skip to main content



      Home
Home » Archived » XML Schema Definition (XSD) » best pratice on where to store property strings?
best pratice on where to store property strings? [message #576305] Sun, 24 August 2003 20:55
Eclipse UserFriend
A recent message from Ed Merks contained a comment about property message
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
Previous Topic:A Search for a more gentle approach to error handling using Eclipse XSD
Next Topic:XSD to Ecore to UML XMI ?
Goto Forum:
  


Current Time: Sun Jul 13 16:33:48 EDT 2025

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

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

Back to the top