Hi, there are good and bad news...
Bad news is, that BlueBerry does not support setting (default) preference values from the command line or somewhere else. Good news is, that there are two mechanisms in Eclipse which we could think about porting over: 1. Use an extension point to set default values at runtime [1] 2. Use a "plugin_customization.ini" file which my provide default values [2] As far as I understood, both approaches only set default values. If there exist some user defined values, these will not be modified. If you need to overwrite user defined values, via the command line argument, you probably don't want to persist these values. While we could think about a command line approach, the berry::IPreferencesService interface will persist all values, so a solution would require more "thinking". Furthermore, what value should be used if the user changes a preferences in the preferences pages for which a command line value was given? Best, Sascha [1] http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fextension-points%2Findex.html [2] http://www.vogella.com/tutorials/EclipsePreferences/article.html#preferences_plugin.ini On 07/31/2014 04:07 PM, Miklos Espak wrote: > Hi, > > Is there an option for BlueBerry apps to specify preference values at > command line? I think of something like the -D option of the cmake > command to override variables in the cache. > > I have not found this, but I might have overlooked it. > > I will need this feature very soon, and it would be natural to > implement it in BlueBerry rather than in NifTK. But I do this only if > you guys are interested about this feature and we agree in the syntax. > Otherwise, my fork would diverge too much. > > Thanks, > Miklos > ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
