Révision 307
tmp/org.txm.core/src/java/org/txm/core/preferences/TXMPreferences.java (revision 307) | ||
---|---|---|
44 | 44 |
* Alternative nodes to look up when getting a preference. |
45 | 45 |
*/ |
46 | 46 |
public static ArrayList<String> alternativeNodesQualifiers = new ArrayList<String>(); |
47 |
|
|
47 |
|
|
48 | 48 |
/** |
49 | 49 |
* Stores a pairs of key / value in a local node dedicated to the specified result. The node qualifier is generated by the <code>Object.toString()</code> method. |
50 | 50 |
* @param result |
... | ... | |
532 | 532 |
|
533 | 533 |
|
534 | 534 |
//FIXME: this code is dedicated to dynamically retrieve the static field PREFERENCES_NODE of the runtime subclass and use it super class to avoid to pass it to all methods. |
535 |
// eg. to use ProgressionPreferences.getBoolean("test") instead of TXMPreferences..getBoolean(ProgressionPreferences.PREFERENCES_NODE, "test")
|
|
535 |
// eg. to use ProgressionPreferences.getBoolean("test") instead of TXMPreferences.getBoolean(ProgressionPreferences.PREFERENCES_NODE, "test") |
|
536 | 536 |
// but it doesn"t work, need to continue the tests... |
537 | 537 |
// /** |
538 | 538 |
// * |
... | ... | |
586 | 586 |
// } |
587 | 587 |
// |
588 | 588 |
// |
589 |
// FIXME: new tests with bundles context class loading |
|
590 |
// private static String getNodeQualifier() { |
|
591 |
// |
|
592 |
// //System.out.println("TXMPreferences.getNodeQualifier() runtime class: " + ); |
|
593 |
// |
|
594 |
// HashSet<ClassLoader> loaders = new HashSet<ClassLoader>(); |
|
595 |
// BundleContext bundleContext = InternalPlatform.getDefault().getBundleContext(); |
|
596 |
// |
|
597 |
// for (Bundle b : bundleContext.getBundles()) { |
|
598 |
// BundleWiring bundleWiring = b.adapt(BundleWiring.class); |
|
599 |
// loaders.add(bundleWiring.getClassLoader()); |
|
600 |
// |
|
601 |
// //FIXME: debug |
|
602 |
// System.out.println("GSERunner.createGSERunner(): class loader added: " + bundleWiring.getClassLoader()); |
|
603 |
// } |
|
604 |
// |
|
605 |
// |
|
606 |
// } |
|
607 |
|
|
608 |
|
|
589 | 609 |
// /** |
590 | 610 |
// * |
591 | 611 |
// * @param key |
Formats disponibles : Unified diff