Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.93 KB

Branding.md

File metadata and controls

30 lines (21 loc) · 1.93 KB

###How to modify JDemetra+ specifications properties messages?

####Context

Into the "Specification panel, all the properties could have an explanation about the impact they have at the bottom of the panel
NbDemetra - Branding

Actually those messages were coded inside the class files and could not be modified easily.

####Branding

With NetBeans, there is a way to externalize a string message by using the attribute @Messages of the org.openide.util.NbBundle.Messages class.

This attribute generate a Bundle.properties file for each package and create a pair of key/value element for each message to display. Then in your code, you use the key instead of your string.

Using the Branding functionality of NetBeans will help you if you want to expand those properties messages.
Basically you could modify only one (or many) messages without going inside the code. You can just change one message and the Branding functionality will create a new Bundle.properties file that will contain the new key/value. This Bundle.properties file will contain one, many or all the key/value and will be use first in the replacement of the variables by your message.

####How to?

  1. Open the jdemetra-app project in NetBeans
  2. Right-Click on the NbDemetra – Branding project
    NbDemetra - Branding1
    and click on Branding… menu
  3. Select Resource Bundles tab
    NbDemetra - Branding2
  4. You can search for a key in the search textbox or double click on the Bundle.properties to access the different key/value variables.
    NbDemetra - Branding3
  5. Double-click on the key/value you want to modifie and write the new value you want to see.
    NbDemetra - Branding4