Task #2083
Check how the PreferencesInitializer are managed in a non UI environment (to run TBX as standalone)
Statut: | Feedback | Début: | 26/03/2017 | |
---|---|---|---|---|
Priorité: | Normal | Echéance: | ||
Assigné à: | - | % réalisé: | 0% |
|
Catégorie: | Development | Temps passé: | - | |
Version cible: | TXM 0.X.X |
Description
Check how the PreferencesInitializer are managed in a non UI environment (to run TBX as standalone).
Validation tests¶
- after the plug-ins split is done, export org.txm.core as deployable plug-in
- add some Log outputs in plug-ins to display their preferences when the bundles are loaded
- run the main .jar and check the output of each preference is what is expected
- (at this moment the TBX can not save its preferences)
Feedback¶
NOTE 1: we can't use this code in the preference initializers of each plug-in:
// auto populate the preference node qualifier from the current bundle id public static final String PREFERENCES_NODE = FrameworkUtil.getBundle(PartitionDimensionsPreferences.class).getSymbolicName();
to auto populate the preference node qualifier if running the toolbox as standalone without an RCP Application/Product because getBundle() returns null without Equinox/OSGI.
Need to discuss about the use of an RCP Application/Product for running the TBX as standalone. Actually I think it would be better than running a .jar because we could deploy light portals or light TBX for example. Other advantage is a portal could benefit from P2 updates system to automatically updates the TBX.
NOTE 2: not using dynamic bundle symbolic name doesn't resolve the issue, for example using:
public static final String PREFERENCES_NODE = "org.txm.statsengine.r.core";
leads to the error and no preferences are set:
Wed Jun 28 12:59:01 CEST 2017 - [main] Product-specified preferences called before plugin is started
Historique
#1 Mis à jour par Sebastien Jacquot il y a plus de 8 ans
- Description mis à jour (diff)
#2 Mis à jour par Sebastien Jacquot il y a plus de 8 ans
- Description mis à jour (diff)
- Statut changé de New à Feedback
#3 Mis à jour par Sebastien Jacquot il y a plus de 8 ans
- Description mis à jour (diff)
#4 Mis à jour par Sebastien Jacquot il y a plus de 8 ans
- Description mis à jour (diff)
#5 Mis à jour par Sebastien Jacquot il y a plus de 8 ans
- Description mis à jour (diff)
#6 Mis à jour par Sebastien Jacquot il y a plus de 8 ans
- Description mis à jour (diff)
#7 Mis à jour par Sebastien Jacquot il y a presque 7 ans
- Version cible changé de TXM 0.8.0a (split/restructuration) à TXM 0.8.2
#8 Mis à jour par Matthieu Decorde il y a presque 6 ans
- Version cible changé de TXM 0.8.2 à TXM 0.X.X