You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2018/02/02 18:15:02 UTC

[GitHub] neilcsmith-net commented on issue #393: Added a way for a Platform application to customize some text in the ?

neilcsmith-net commented on issue #393: Added a way for a Platform application to customize some text in the ?
URL: https://github.com/apache/incubator-netbeans/pull/393#issuecomment-362662452
 
 
   In some ways I do what @sdedic suggests - ie, system properties in the `app.conf` file. However, I don't think this can meet all the needs you discussed, which really needs to dynamically change the parameters passed into MessageFormat.  My thought was something along the lines of -
   
   ```java
   interface NbBundle.ParameterFilter {
       Object[] filter(Class<?> clazz, String resName, Object[] arr);
   }
   ```
   
   registered in META-INF and called as part of `NbBundle.getMessage()`.  This should allow the sort of override you're talking about for any message - about panel is not the only problem.  A complication may be that I'm not sure NbBundle could use Lookup for this?  And need to be careful of performance concerns.
   
   Anyway, I'd suggest taking this discussion into JIRA?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists